pub struct UpdateVerificationFlowWithCodeMethod {
pub code: Option<String>,
pub csrf_token: Option<String>,
pub email: Option<String>,
pub method: MethodEnum,
pub transient_payload: Option<Value>,
}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
transient_payload: Option<Value>Transient data to pass along to any webhooks
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for UpdateVerificationFlowWithCodeMethod
impl Default for UpdateVerificationFlowWithCodeMethod
Source§fn default() -> UpdateVerificationFlowWithCodeMethod
fn default() -> UpdateVerificationFlowWithCodeMethod
Source§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>,
Source§impl PartialEq for UpdateVerificationFlowWithCodeMethod
impl PartialEq for UpdateVerificationFlowWithCodeMethod
Source§fn eq(&self, other: &UpdateVerificationFlowWithCodeMethod) -> bool
fn eq(&self, other: &UpdateVerificationFlowWithCodeMethod) -> bool
self and other values to be equal, and is used by ==.