pub struct OtpConfig {
pub enabled: bool,
pub method: String,
pub token_ttl_secs: u64,
pub cache_valid_secs: u64,
pub gated_actions: Vec<String>,
pub gated_domains: Vec<String>,
pub gated_domain_categories: Vec<String>,
}Fields§
§enabled: bool§method: String§token_ttl_secs: u64§cache_valid_secs: u64§gated_actions: Vec<String>§gated_domains: Vec<String>§gated_domain_categories: Vec<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for OtpConfig
impl<'de> Deserialize<'de> for OtpConfig
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
Auto Trait Implementations§
impl Freeze for OtpConfig
impl RefUnwindSafe for OtpConfig
impl Send for OtpConfig
impl Sync for OtpConfig
impl Unpin for OtpConfig
impl UnsafeUnpin for OtpConfig
impl UnwindSafe for OtpConfig
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