pub struct CognitoClient<'a> { /* private fields */ }Implementations§
Source§impl CognitoClient<'_>
impl CognitoClient<'_>
Sourcepub async fn get_user_codes(
&self,
pool_id: &str,
username: &str,
) -> Result<UserConfirmationCodes, Error>
pub async fn get_user_codes( &self, pool_id: &str, username: &str, ) -> Result<UserConfirmationCodes, Error>
Get confirmation codes for a specific user.
Sourcepub async fn get_confirmation_codes(
&self,
) -> Result<ConfirmationCodesResponse, Error>
pub async fn get_confirmation_codes( &self, ) -> Result<ConfirmationCodesResponse, Error>
List all confirmation codes across all pools.
Sourcepub async fn confirm_user(
&self,
req: &ConfirmUserRequest,
) -> Result<ConfirmUserResponse, Error>
pub async fn confirm_user( &self, req: &ConfirmUserRequest, ) -> Result<ConfirmUserResponse, Error>
Confirm a user (bypass email/phone verification).
Sourcepub async fn get_tokens(&self) -> Result<TokensResponse, Error>
pub async fn get_tokens(&self) -> Result<TokensResponse, Error>
List all active tokens.
Sourcepub async fn expire_tokens(
&self,
req: &ExpireTokensRequest,
) -> Result<ExpireTokensResponse, Error>
pub async fn expire_tokens( &self, req: &ExpireTokensRequest, ) -> Result<ExpireTokensResponse, Error>
Expire tokens (optionally filtered by pool/user).
Sourcepub async fn get_auth_events(&self) -> Result<AuthEventsResponse, Error>
pub async fn get_auth_events(&self) -> Result<AuthEventsResponse, Error>
List auth events.
Auto Trait Implementations§
impl<'a> Freeze for CognitoClient<'a>
impl<'a> !RefUnwindSafe for CognitoClient<'a>
impl<'a> Send for CognitoClient<'a>
impl<'a> Sync for CognitoClient<'a>
impl<'a> Unpin for CognitoClient<'a>
impl<'a> UnsafeUnpin for CognitoClient<'a>
impl<'a> !UnwindSafe for CognitoClient<'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