pub struct AuthConfigPassword {
pub require_2fa: bool,
pub administrators_only: bool,
}
Expand description
Configuration for password-based authentication.
Fields§
§require_2fa: bool
§administrators_only: bool
Implementations§
Source§impl AuthConfigPassword
impl AuthConfigPassword
pub fn new(require_2fa: bool, administrators_only: bool) -> AuthConfigPassword
Trait Implementations§
Source§impl Clone for AuthConfigPassword
impl Clone for AuthConfigPassword
Source§fn clone(&self) -> AuthConfigPassword
fn clone(&self) -> AuthConfigPassword
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 Debug for AuthConfigPassword
impl Debug for AuthConfigPassword
Source§impl<'de> Deserialize<'de> for AuthConfigPassword
impl<'de> Deserialize<'de> for AuthConfigPassword
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 AuthConfigPassword
impl PartialEq for AuthConfigPassword
Source§impl Serialize for AuthConfigPassword
impl Serialize for AuthConfigPassword
impl StructuralPartialEq for AuthConfigPassword
Auto Trait Implementations§
impl Freeze for AuthConfigPassword
impl RefUnwindSafe for AuthConfigPassword
impl Send for AuthConfigPassword
impl Sync for AuthConfigPassword
impl Unpin for AuthConfigPassword
impl UnwindSafe for AuthConfigPassword
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