pub trait UsersService:
Send
+ Sync
+ 'static {
Show 17 methods
// Required methods
fn get_user<'life0, 'async_trait>(
&'life0 self,
request: Request<GetUserRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<User>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_user<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdateUserRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<User>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_user_emails<'life0, 'async_trait>(
&'life0 self,
request: Request<ListUserEmailsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UserEmailsList>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_user_email<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateUserEmailRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn complete_create_user_email<'life0, 'async_trait>(
&'life0 self,
request: Request<CompleteCreateUserEmailRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UserEmail>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_user_email<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteUserEmailRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UserEmail>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_webauthn_credential<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateWebauthnCredentialRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateWebauthnCredentialResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn complete_create_webauthn_credential<'life0, 'async_trait>(
&'life0 self,
request: Request<CompleteCreateWebauthnCredentialRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<WebauthnCredential>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_webauthn_credentials<'life0, 'async_trait>(
&'life0 self,
request: Request<ListWebauthnCredentialsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<WebauthnCredentialsList>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_webauthn_credential<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteWebauthnCredentialRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<WebauthnCredential>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_webauthn_challenge<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateWebauthnChallengeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<WebauthnChallenge>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_totp_credential<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateTotpCredentialRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateTotpCredentialResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn complete_create_totp_credential<'life0, 'async_trait>(
&'life0 self,
request: Request<CompleteCreateTotpCredentialRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TotpCredential>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_totp_credentials<'life0, 'async_trait>(
&'life0 self,
request: Request<ListTotpCredentialsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TotpCredentialsList>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_totp_credential<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteTotpCredentialRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TotpCredential>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn regenerate_recovery_codes<'life0, 'async_trait>(
&'life0 self,
request: Request<RegenerateRecoveryCodesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RecoveryCodes>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_user<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteUserRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<User>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with UsersServiceServer.