Struct ory_client::models::update_verification_flow_with_code_method::UpdateVerificationFlowWithCodeMethod
source · pub struct UpdateVerificationFlowWithCodeMethod {
pub code: Option<String>,
pub csrf_token: Option<String>,
pub email: Option<String>,
pub method: MethodEnum,
}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 to verify If the email belongs to a valid account, a verifiation 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 verification flow Allowed values are link and code. link VerificationStrategyLink code VerificationStrategyCode
Implementations§
source§impl UpdateVerificationFlowWithCodeMethod
impl UpdateVerificationFlowWithCodeMethod
pub fn new(method: MethodEnum) -> UpdateVerificationFlowWithCodeMethod
Trait Implementations§
source§impl Clone for UpdateVerificationFlowWithCodeMethod
impl Clone for UpdateVerificationFlowWithCodeMethod
source§fn clone(&self) -> UpdateVerificationFlowWithCodeMethod
fn clone(&self) -> UpdateVerificationFlowWithCodeMethod
Returns a copy 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<'de> Deserialize<'de> for UpdateVerificationFlowWithCodeMethod
impl<'de> Deserialize<'de> for UpdateVerificationFlowWithCodeMethod
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 UpdateVerificationFlowWithCodeMethod
impl PartialEq for UpdateVerificationFlowWithCodeMethod
source§fn eq(&self, other: &UpdateVerificationFlowWithCodeMethod) -> bool
fn eq(&self, other: &UpdateVerificationFlowWithCodeMethod) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UpdateVerificationFlowWithCodeMethod
Auto Trait Implementations§
impl RefUnwindSafe for UpdateVerificationFlowWithCodeMethod
impl Send for UpdateVerificationFlowWithCodeMethod
impl Sync for UpdateVerificationFlowWithCodeMethod
impl Unpin for UpdateVerificationFlowWithCodeMethod
impl UnwindSafe for UpdateVerificationFlowWithCodeMethod
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