[−][src]Trait lightspeed_auth::repository::AuthAccountRepository
Associated Types
type Conn: SqlConnection
Required methods
#[must_use]fn fetch_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
user_id: i64
) -> Pin<Box<dyn Future<Output = Result<AuthAccountModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn,
user_id: i64
) -> Pin<Box<dyn Future<Output = Result<AuthAccountModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: '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<AuthAccountModel, 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<AuthAccountModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
#[must_use]fn fetch_by_username_optional<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
username: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Option<AuthAccountModel>, 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<Option<AuthAccountModel>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
#[must_use]fn fetch_by_email_optional<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
email: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Option<AuthAccountModel>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn,
email: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Option<AuthAccountModel>, 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<AuthAccountData>
) -> Pin<Box<dyn Future<Output = Result<AuthAccountModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn,
model: NewModel<AuthAccountData>
) -> Pin<Box<dyn Future<Output = Result<AuthAccountModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn update<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
model: Model<AuthAccountData>
) -> Pin<Box<dyn Future<Output = Result<AuthAccountModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn,
model: Model<AuthAccountData>
) -> Pin<Box<dyn Future<Output = Result<AuthAccountModel, 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: AuthAccountModel
) -> Pin<Box<dyn Future<Output = Result<AuthAccountModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
conn: &'life1 mut Self::Conn,
model: AuthAccountModel
) -> Pin<Box<dyn Future<Output = Result<AuthAccountModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Implementors
impl AuthAccountRepository for PgAuthAccountRepository
[src]
type Conn = PgConnection
fn fetch_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
user_id: i64
) -> Pin<Box<dyn Future<Output = Result<Model<AuthAccountData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Conn,
user_id: i64
) -> Pin<Box<dyn Future<Output = Result<Model<AuthAccountData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: '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<AuthAccountModel, 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<AuthAccountModel, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn fetch_by_username_optional<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
username: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Option<Model<AuthAccountData>>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Conn,
username: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Option<Model<AuthAccountData>>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn fetch_by_email_optional<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
conn: &'life1 mut PgConnection,
email: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Option<AuthAccountModel>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut PgConnection,
email: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Option<AuthAccountModel>, 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<AuthAccountData>
) -> Pin<Box<dyn Future<Output = Result<Model<AuthAccountData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Conn,
model: NewModel<AuthAccountData>
) -> Pin<Box<dyn Future<Output = Result<Model<AuthAccountData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn update<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
model: Model<AuthAccountData>
) -> Pin<Box<dyn Future<Output = Result<Model<AuthAccountData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Conn,
model: Model<AuthAccountData>
) -> Pin<Box<dyn Future<Output = Result<Model<AuthAccountData>, 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<AuthAccountData>
) -> Pin<Box<dyn Future<Output = Result<Model<AuthAccountData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
conn: &'life1 mut Self::Conn,
model: Model<AuthAccountData>
) -> Pin<Box<dyn Future<Output = Result<Model<AuthAccountData>, LightSpeedError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,