pub fn store_token(&self, token: Token) -> QueryResult<()> {
        let new_token: DbToken = token.into();
        diesel::insert_into(tokens::table)
            .values(&new_token)
            .on_conflict(tokens::id)
            .do_nothing()
            .execute(self.0.conn())
            .map(drop)
    }
/// Persists the token in the database.
Persists the token in the database.
Persists the token in the database .
pub fn store_token(&self, token: Token) -> QueryResult<()> {
        let new_token: DbToken = token.into();
        diesel::insert_into(tokens::table)
            .values(&new_token)
            .on_conflict(tokens::id)
            .do_nothing()
            .execute(self.0.conn())
            .map(drop)
    }
pub fn store_token ( & self , token : Token ) -> QueryResult < ( ) > { let new_token : DbToken = token . into ( ) ; diesel :: insert_into ( tokens :: table ) . values ( & new_token ) . on_conflict ( tokens :: id ) . do_nothing ( ) . execute ( self . 0 . conn ( ) ) . map ( drop ) }
Persists the token in the database.
Persists the token in the database .
&self
token
Token