pub struct AccessTfaCreateTfaResponseData {
pub challenge: Option<String>,
pub id: Option<String>,
pub recovery: Vec<i64>,
}Fields§
§challenge: Option<String>When adding u2f entries, this contains a challenge the user must respond to in order to finish the registration.
id: Option<String>The id if a newly added TFA entry.
recovery: Vec<i64>A list of recovery codes as integers.
Implementations§
Source§impl AccessTfaCreateTfaResponseData
impl AccessTfaCreateTfaResponseData
pub fn new(recovery: Vec<i64>) -> AccessTfaCreateTfaResponseData
Trait Implementations§
Source§impl Clone for AccessTfaCreateTfaResponseData
impl Clone for AccessTfaCreateTfaResponseData
Source§fn clone(&self) -> AccessTfaCreateTfaResponseData
fn clone(&self) -> AccessTfaCreateTfaResponseData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AccessTfaCreateTfaResponseData
impl Default for AccessTfaCreateTfaResponseData
Source§fn default() -> AccessTfaCreateTfaResponseData
fn default() -> AccessTfaCreateTfaResponseData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccessTfaCreateTfaResponseData
impl<'de> Deserialize<'de> for AccessTfaCreateTfaResponseData
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 AccessTfaCreateTfaResponseData
impl PartialEq for AccessTfaCreateTfaResponseData
Source§fn eq(&self, other: &AccessTfaCreateTfaResponseData) -> bool
fn eq(&self, other: &AccessTfaCreateTfaResponseData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AccessTfaCreateTfaResponseData
Auto Trait Implementations§
impl Freeze for AccessTfaCreateTfaResponseData
impl RefUnwindSafe for AccessTfaCreateTfaResponseData
impl Send for AccessTfaCreateTfaResponseData
impl Sync for AccessTfaCreateTfaResponseData
impl Unpin for AccessTfaCreateTfaResponseData
impl UnsafeUnpin for AccessTfaCreateTfaResponseData
impl UnwindSafe for AccessTfaCreateTfaResponseData
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