pub struct UpdateSettingsFlowWithTotpMethod {
pub csrf_token: Option<String>,
pub method: String,
pub totp_code: Option<String>,
pub totp_unlink: Option<bool>,
pub transient_payload: Option<Value>,
}Expand description
UpdateSettingsFlowWithTotpMethod : Update Settings Flow with TOTP Method
Fields§
§csrf_token: Option<String>CSRFToken is the anti-CSRF token
method: StringMethod Should be set to "totp" when trying to add, update, or remove a totp pairing.
totp_code: Option<String>ValidationTOTP must contain a valid TOTP based on the
totp_unlink: Option<bool>UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device.
transient_payload: Option<Value>Transient data to pass along to any webhooks
Implementations§
Source§impl UpdateSettingsFlowWithTotpMethod
impl UpdateSettingsFlowWithTotpMethod
Sourcepub fn new(method: String) -> UpdateSettingsFlowWithTotpMethod
pub fn new(method: String) -> UpdateSettingsFlowWithTotpMethod
Update Settings Flow with TOTP Method
Trait Implementations§
Source§impl Clone for UpdateSettingsFlowWithTotpMethod
impl Clone for UpdateSettingsFlowWithTotpMethod
Source§fn clone(&self) -> UpdateSettingsFlowWithTotpMethod
fn clone(&self) -> UpdateSettingsFlowWithTotpMethod
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 UpdateSettingsFlowWithTotpMethod
impl Default for UpdateSettingsFlowWithTotpMethod
Source§fn default() -> UpdateSettingsFlowWithTotpMethod
fn default() -> UpdateSettingsFlowWithTotpMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateSettingsFlowWithTotpMethod
impl<'de> Deserialize<'de> for UpdateSettingsFlowWithTotpMethod
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 UpdateSettingsFlowWithTotpMethod
impl PartialEq for UpdateSettingsFlowWithTotpMethod
Source§fn eq(&self, other: &UpdateSettingsFlowWithTotpMethod) -> bool
fn eq(&self, other: &UpdateSettingsFlowWithTotpMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateSettingsFlowWithTotpMethod
Auto Trait Implementations§
impl Freeze for UpdateSettingsFlowWithTotpMethod
impl RefUnwindSafe for UpdateSettingsFlowWithTotpMethod
impl Send for UpdateSettingsFlowWithTotpMethod
impl Sync for UpdateSettingsFlowWithTotpMethod
impl Unpin for UpdateSettingsFlowWithTotpMethod
impl UnwindSafe for UpdateSettingsFlowWithTotpMethod
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