pub trait UsersApiMut {
    type Error;
Show 17 methods fn accept_terms_and_conditions(&mut self) -> Result<(), Self::Error>;
fn change_password(
        &mut self,
        body: PasswordChangeRequest
    ) -> Result<(), Self::Error>;
fn confirm_email(
        &mut self,
        body: ConfirmEmailRequest
    ) -> Result<ConfirmEmailResponse, Self::Error>;
fn create_user(&mut self, body: SignupRequest) -> Result<User, Self::Error>;
fn delete_user_account(&mut self, user_id: Uuid) -> Result<(), Self::Error>;
fn delete_user_from_account(
        &mut self,
        user_id: Uuid
    ) -> Result<(), Self::Error>;
fn forgot_password(
        &mut self,
        body: ForgotPasswordRequest
    ) -> Result<(), Self::Error>;
fn get_all_users(
        &mut self,
        all_search: Option<String>,
        limit: Option<i32>,
        offset: Option<i32>,
        sort_by: Option<String>
    ) -> Result<GetAllUsersResponse, Self::Error>;
fn get_logged_in_user(&mut self) -> Result<User, Self::Error>;
fn get_user(&mut self, user_id: Uuid) -> Result<User, Self::Error>;
fn invite_user(
        &mut self,
        body: InviteUserRequest
    ) -> Result<User, Self::Error>;
fn process_invitations(
        &mut self,
        body: ProcessInviteRequest
    ) -> Result<(), Self::Error>;
fn resend_confirm_email(&mut self) -> Result<(), Self::Error>;
fn resend_invitation(&mut self, user_id: Uuid) -> Result<(), Self::Error>;
fn reset_password(
        &mut self,
        user_id: Uuid,
        body: PasswordResetRequest
    ) -> Result<(), Self::Error>;
fn update_user(
        &mut self,
        user_id: Uuid,
        body: UpdateUserRequest
    ) -> Result<User, Self::Error>;
fn validate_password_reset_token(
        &mut self,
        user_id: Uuid,
        body: ValidateTokenRequest
    ) -> Result<ValidateTokenResponse, Self::Error>;
}

Associated Types

Required methods

Current user accepts latest terms and conditions.

Change user password.

Confirms user’s email address.

Create a new user.

Completely delete a user profile from system

Removed user’s association with an account.

Initiate password reset sequence for a user.

Get all user’s information.

Get details of the current logged in user.

Get details of a particular user.

Invite a user.

Process a user’s pending account invitations.

Resend email with link to confirm user’s email address.

Resend invite to the user to join a specific account.

Reset a user’s password.

Update status, name, and the role of a user. User with MANAGER access role can only update another user.

Validates password reset token for the user.

Implementors