[−][src]Trait lightspeed_auth::repository::TokenRepository
Associated Types
type Conn: SqlConnection
Required methods
#[must_use]fn fetch_by_token<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
token_string: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<TokenModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn,
token_string: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<TokenModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
#[must_use]fn fetch_by_username<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
username: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Vec<TokenModel>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn,
username: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Vec<TokenModel>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
#[must_use]fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
model: NewModel<TokenData>
) -> Pin<Box<dyn Future<Output = Result<TokenModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn,
model: NewModel<TokenData>
) -> Pin<Box<dyn Future<Output = Result<TokenModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
model: TokenModel
) -> Pin<Box<dyn Future<Output = Result<TokenModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn,
model: TokenModel
) -> Pin<Box<dyn Future<Output = Result<TokenModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Implementors
impl TokenRepository for PgTokenRepository
[src]
type Conn = PgConnection
fn fetch_by_token<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
conn: &'life1 mut PgConnection,
token_string: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<TokenModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut PgConnection,
token_string: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<TokenModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn fetch_by_username<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
conn: &'life1 mut PgConnection,
username: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Vec<TokenModel>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut PgConnection,
username: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Vec<TokenModel>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
model: NewModel<TokenData>
) -> Pin<Box<dyn Future<Output = Result<Model<TokenData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Conn,
model: NewModel<TokenData>
) -> Pin<Box<dyn Future<Output = Result<Model<TokenData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
model: Model<TokenData>
) -> Pin<Box<dyn Future<Output = Result<Model<TokenData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Conn,
model: Model<TokenData>
) -> Pin<Box<dyn Future<Output = Result<Model<TokenData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,