pub struct OtpAuthMethod {
pub ttl: Option<i32>,
pub ttl_display_unit: Option<TtlDisplayUnit>,
}
Fields§
§ttl: Option<i32>
Maximum time (IN SECONDS) for the auth to expire.
ttl_display_unit: Option<TtlDisplayUnit>
Implementations§
Source§impl OtpAuthMethod
impl OtpAuthMethod
pub fn new() -> OtpAuthMethod
Trait Implementations§
Source§impl Clone for OtpAuthMethod
impl Clone for OtpAuthMethod
Source§fn clone(&self) -> OtpAuthMethod
fn clone(&self) -> OtpAuthMethod
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 Debug for OtpAuthMethod
impl Debug for OtpAuthMethod
Source§impl Default for OtpAuthMethod
impl Default for OtpAuthMethod
Source§fn default() -> OtpAuthMethod
fn default() -> OtpAuthMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OtpAuthMethod
impl<'de> Deserialize<'de> for OtpAuthMethod
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 OtpAuthMethod
impl PartialEq for OtpAuthMethod
Source§impl Serialize for OtpAuthMethod
impl Serialize for OtpAuthMethod
impl StructuralPartialEq for OtpAuthMethod
Auto Trait Implementations§
impl Freeze for OtpAuthMethod
impl RefUnwindSafe for OtpAuthMethod
impl Send for OtpAuthMethod
impl Sync for OtpAuthMethod
impl Unpin for OtpAuthMethod
impl UnwindSafe for OtpAuthMethod
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