pub struct SessionsRepository<'a> { /* private fields */ }Implementations§
Source§impl SessionsRepository<'_>
impl SessionsRepository<'_>
pub async fn resolve_github_human( &self, input: &ResolveGithubHumanInput, ) -> Result<HumanRecord>
pub async fn create_github_sign_in_state( &self, input: &CreateGithubSignInStateInput, ) -> Result<()>
pub async fn consume_github_sign_in_state( &self, state_hash: &str, browser_nonce_hash: &str, ) -> Result<Option<ConsumedGithubSignInState>>
pub async fn create_human_session( &self, input: &CreateHumanSessionInput, ) -> Result<()>
pub async fn authenticate_human( &self, session_token: &str, ) -> Result<Option<AuthenticatedHumanSession>>
pub async fn complete_human_setup( &self, human_id: &HumanId, code_hash: &str, ) -> Result<HumanRecord>
pub async fn delete_human_session_by_token( &self, session_token: &str, ) -> Result<()>
pub async fn delete_human_account( &self, human_id: &HumanId, ) -> Result<DeleteHumanAccountOutcome>
pub async fn list_humans(&self) -> Result<Vec<HumanRecord>>
pub async fn get_human_by_id(&self, human_id: &HumanId) -> Result<HumanRecord>
pub async fn grant_admin_role( &self, human_id: &HumanId, granted_by_human_id: &HumanId, ) -> Result<HumanRecord>
pub async fn revoke_admin_role( &self, human_id: &HumanId, revoked_by_human_id: &HumanId, ) -> Result<HumanRecord>
pub async fn create_admin_service_token( &self, input: &CreateAdminServiceTokenInput, ) -> Result<AdminServiceTokenRecord>
pub async fn list_admin_service_tokens( &self, ) -> Result<Vec<AdminServiceTokenRecord>>
pub async fn revoke_admin_service_token( &self, id: &AdminServiceTokenId, revoked_by_human_id: &HumanId, ) -> Result<AdminServiceTokenRecord>
pub async fn authenticate_admin_service_token( &self, token_hash: &str, ) -> Result<Option<AuthenticatedAdminServiceToken>>
pub async fn create_creator_api_token( &self, input: &CreateCreatorApiTokenInput, ) -> Result<CreatorApiTokenRecord>
pub async fn list_creator_api_tokens( &self, human_id: &HumanId, ) -> Result<Vec<CreatorApiTokenRecord>>
pub async fn revoke_creator_api_token( &self, human_id: &HumanId, id: &CreatorApiTokenId, ) -> Result<CreatorApiTokenRecord>
pub async fn authenticate_creator_api_token( &self, token_hash: &str, ) -> Result<Option<AuthenticatedCreatorApiToken>>
pub async fn delete_expired_web_auth_rows(&self) -> Result<()>
Trait Implementations§
Source§impl<'a> Clone for SessionsRepository<'a>
impl<'a> Clone for SessionsRepository<'a>
Source§fn clone(&self) -> SessionsRepository<'a>
fn clone(&self) -> SessionsRepository<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SessionsRepository<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SessionsRepository<'a>
impl<'a> !UnwindSafe for SessionsRepository<'a>
impl<'a> Freeze for SessionsRepository<'a>
impl<'a> Send for SessionsRepository<'a>
impl<'a> Sync for SessionsRepository<'a>
impl<'a> Unpin for SessionsRepository<'a>
impl<'a> UnsafeUnpin for SessionsRepository<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.