Struct ory_client::models::update_settings_flow_with_totp_method::UpdateSettingsFlowWithTotpMethod
source · pub struct UpdateSettingsFlowWithTotpMethod {
pub csrf_token: Option<String>,
pub method: String,
pub totp_code: Option<String>,
pub totp_unlink: Option<bool>,
}
Expand description
UpdateSettingsFlowWithTotpMethod : Update Settings Flow with TOTP Method
Fields§
§csrf_token: Option<String>
CSRFToken is the anti-CSRF token
method: String
Method 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.
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 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 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<UpdateSettingsFlowWithTotpMethod> for UpdateSettingsFlowWithTotpMethod
impl PartialEq<UpdateSettingsFlowWithTotpMethod> for UpdateSettingsFlowWithTotpMethod
source§fn eq(&self, other: &UpdateSettingsFlowWithTotpMethod) -> bool
fn eq(&self, other: &UpdateSettingsFlowWithTotpMethod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.