pub enum PasswordType {
Plaintext,
Type7,
Md5,
Scrypt,
}Expand description
Password storage type as encoded in the config.
Variants§
Plaintext
password 0 … or bare password … — cleartext.
Type7
password 7 … — Cisco Type-7 (XOR-based, reversible).
Md5
secret 5 … — MD5 hash ($1$…).
Scrypt
secret 9 … — scrypt hash ($9$…).
Trait Implementations§
Source§impl Clone for PasswordType
impl Clone for PasswordType
Source§fn clone(&self) -> PasswordType
fn clone(&self) -> PasswordType
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 Debug for PasswordType
impl Debug for PasswordType
Source§impl<'de> Deserialize<'de> for PasswordType
impl<'de> Deserialize<'de> for PasswordType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PasswordType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PasswordType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PasswordType
impl PartialEq for PasswordType
Source§fn eq(&self, other: &PasswordType) -> bool
fn eq(&self, other: &PasswordType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PasswordType
impl Serialize for PasswordType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PasswordType
Auto Trait Implementations§
impl Freeze for PasswordType
impl RefUnwindSafe for PasswordType
impl Send for PasswordType
impl Sync for PasswordType
impl Unpin for PasswordType
impl UnsafeUnpin for PasswordType
impl UnwindSafe for PasswordType
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