pub struct UpdateRecoveryFlowWithLinkMethod {
pub csrf_token: Option<String>,
pub email: String,
pub method: MethodEnum,
pub transient_payload: Option<Value>,
}Expand description
UpdateRecoveryFlowWithLinkMethod : Update Recovery Flow with Link Method
Fields§
§csrf_token: Option<String>Sending the anti-csrf token is only required for browser login flows.
email: StringEmail 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
method: MethodEnumMethod is the method that should be used for this recovery flow Allowed values are link and code link RecoveryStrategyLink code RecoveryStrategyCode
transient_payload: Option<Value>Transient data to pass along to any webhooks
Implementations§
Source§impl UpdateRecoveryFlowWithLinkMethod
impl UpdateRecoveryFlowWithLinkMethod
Sourcepub fn new(
email: String,
method: MethodEnum,
) -> UpdateRecoveryFlowWithLinkMethod
pub fn new( email: String, method: MethodEnum, ) -> UpdateRecoveryFlowWithLinkMethod
Update Recovery Flow with Link Method
Trait Implementations§
Source§impl Clone for UpdateRecoveryFlowWithLinkMethod
impl Clone for UpdateRecoveryFlowWithLinkMethod
Source§fn clone(&self) -> UpdateRecoveryFlowWithLinkMethod
fn clone(&self) -> UpdateRecoveryFlowWithLinkMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for UpdateRecoveryFlowWithLinkMethod
impl Default for UpdateRecoveryFlowWithLinkMethod
Source§fn default() -> UpdateRecoveryFlowWithLinkMethod
fn default() -> UpdateRecoveryFlowWithLinkMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateRecoveryFlowWithLinkMethod
impl<'de> Deserialize<'de> for UpdateRecoveryFlowWithLinkMethod
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UpdateRecoveryFlowWithLinkMethod
impl PartialEq for UpdateRecoveryFlowWithLinkMethod
Source§fn eq(&self, other: &UpdateRecoveryFlowWithLinkMethod) -> bool
fn eq(&self, other: &UpdateRecoveryFlowWithLinkMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateRecoveryFlowWithLinkMethod
Auto Trait Implementations§
impl Freeze for UpdateRecoveryFlowWithLinkMethod
impl RefUnwindSafe for UpdateRecoveryFlowWithLinkMethod
impl Send for UpdateRecoveryFlowWithLinkMethod
impl Sync for UpdateRecoveryFlowWithLinkMethod
impl Unpin for UpdateRecoveryFlowWithLinkMethod
impl UnwindSafe for UpdateRecoveryFlowWithLinkMethod
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more