Struct ory_client::models::update_recovery_flow_with_code_method::UpdateRecoveryFlowWithCodeMethod
source · pub struct UpdateRecoveryFlowWithCodeMethod {
pub code: Option<String>,
pub csrf_token: Option<String>,
pub email: Option<String>,
pub method: MethodEnum,
}Expand description
UpdateRecoveryFlowWithCodeMethod : Update Recovery Flow with Code Method
Fields§
§code: Option<String>Code from the recovery email If you want to submit a code, use this field, but make sure to not include the email field, as well.
csrf_token: Option<String>Sending the anti-csrf token is only required for browser login flows.
email: Option<String>The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the notify_unknown_recipients flag If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email
method: MethodEnumMethod is the method that should be used for this recovery flow Allowed values are link and code. link RecoveryStrategyLink code RecoveryStrategyCode
Implementations§
source§impl UpdateRecoveryFlowWithCodeMethod
impl UpdateRecoveryFlowWithCodeMethod
sourcepub fn new(method: MethodEnum) -> UpdateRecoveryFlowWithCodeMethod
pub fn new(method: MethodEnum) -> UpdateRecoveryFlowWithCodeMethod
Update Recovery Flow with Code Method
Trait Implementations§
source§impl Clone for UpdateRecoveryFlowWithCodeMethod
impl Clone for UpdateRecoveryFlowWithCodeMethod
source§fn clone(&self) -> UpdateRecoveryFlowWithCodeMethod
fn clone(&self) -> UpdateRecoveryFlowWithCodeMethod
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl<'de> Deserialize<'de> for UpdateRecoveryFlowWithCodeMethod
impl<'de> Deserialize<'de> for UpdateRecoveryFlowWithCodeMethod
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for UpdateRecoveryFlowWithCodeMethod
impl PartialEq for UpdateRecoveryFlowWithCodeMethod
source§fn eq(&self, other: &UpdateRecoveryFlowWithCodeMethod) -> bool
fn eq(&self, other: &UpdateRecoveryFlowWithCodeMethod) -> bool
self and other values to be equal, and is used
by ==.