pub struct SqlIdentity { /* private fields */ }
Expand description

Identity that uses a SQL database as identity storage

Trait Implementations§

Returns the current identity, or none

Remembers a given user (by setting a token value)

Arguments
  • value - User to remember

Forgets a user, by deleting the identity

Saves the identity to the backing store, if it has changed

Arguments
  • resp - HTTP response to modify

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert self to an expression for Diesel’s query builder. Read more
Convert &self to an expression for Diesel’s query builder. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.