pub enum UpdateRecoveryFlowBody {
    UpdateRecoveryFlowWithCodeMethod {
        code: Option<String>,
        csrf_token: Option<String>,
        email: Option<String>,
    },
    UpdateRecoveryFlowWithLinkMethod {
        csrf_token: Option<String>,
        email: String,
    },
}
Expand description

UpdateRecoveryFlowBody : Update Recovery Flow Request Body

Variants§

§

UpdateRecoveryFlowWithCodeMethod

Fields

§code: Option<String>

Code from recovery email Sent to the user once a recovery has been initiated and is used to prove that the user is in possession of the email

§csrf_token: Option<String>

Sending the anti-csrf token is only required for browser login flows.

§email: Option<String>

Email to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email

§

UpdateRecoveryFlowWithLinkMethod

Fields

§csrf_token: Option<String>

Sending the anti-csrf token is only required for browser login flows.

§email: String

Email to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Serialize this value into the given Serde serializer. Read more

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.

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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