pub struct UserFactors {
    pub client: Client,
}

Fields

client: Client

Implementations

This function performs a GET to the /api/v1/users/{userId}/factors endpoint.

Enumerates all the enrolled factors for the specified user

Parameters:

  • user_id: &str

This function performs a GET to the /api/v1/users/{userId}/factors endpoint.

As opposed to list_factors, this function returns all the pages of the request at once.

Enumerates all the enrolled factors for the specified user

Enroll Factor.

This function performs a POST to the /api/v1/users/{userId}/factors endpoint.

Enrolls a user with a supported factor.

Parameters:

  • user_id: &str
  • update_phone: bool
  • template_id: &str – id of SMS template (only for SMS factor).
  • token_lifetime_seconds: i64
  • activate: bool

This function performs a GET to the /api/v1/users/{userId}/factors/catalog endpoint.

Enumerates all the supported factors that can be enrolled for the specified user

Parameters:

  • user_id: &str

This function performs a GET to the /api/v1/users/{userId}/factors/catalog endpoint.

As opposed to list_supported_factors, this function returns all the pages of the request at once.

Enumerates all the supported factors that can be enrolled for the specified user

This function performs a GET to the /api/v1/users/{userId}/factors/questions endpoint.

Enumerates all available security questions for a user’s question factor

Parameters:

  • user_id: &str

This function performs a GET to the /api/v1/users/{userId}/factors/questions endpoint.

As opposed to list_supported_security_questions, this function returns all the pages of the request at once.

Enumerates all available security questions for a user’s question factor

This function performs a GET to the /api/v1/users/{userId}/factors/{factorId} endpoint.

Fetches a factor for the specified user

Parameters:

  • user_id: &str
  • factor_id: &str

This function performs a DELETE to the /api/v1/users/{userId}/factors/{factorId} endpoint.

Unenrolls an existing factor for the specified user, allowing the user to enroll a new factor.

Parameters:

  • user_id: &str
  • factor_id: &str

Activate Factor.

This function performs a POST to the /api/v1/users/{userId}/factors/{factorId}/lifecycle/activate endpoint.

The sms and token:software:totp factor types require activation to complete the enrollment process.

Parameters:

  • user_id: &str
  • factor_id: &str

This function performs a GET to the /api/v1/users/{userId}/factors/{factorId}/transactions/{transactionId} endpoint.

Polls factors verification transaction for status.

Parameters:

  • user_id: &str
  • factor_id: &str
  • transaction_id: &str

Verify MFA Factor.

This function performs a POST to the /api/v1/users/{userId}/factors/{factorId}/verify endpoint.

Verifies an OTP for a token or token:hardware factor

Parameters:

  • user_id: &str
  • factor_id: &str
  • template_id: &str
  • token_lifetime_seconds: i64
  • x_forwarded_for: &str
  • user_agent: &str
  • accept_language: &str

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more