pub enum SecrecyLevel {
Plain,
Otp,
Password,
}
Expand description
Level of secrecy for an input field.
Variants§
Plain
The data is not a secret.
Otp
The data is a one-time password. This can usually be treated as no secret but the implementer might still choose to mask the input.
Password
The data is a secret password. Input must be masked.
Trait Implementations§
Source§impl Clone for SecrecyLevel
impl Clone for SecrecyLevel
Source§fn clone(&self) -> SecrecyLevel
fn clone(&self) -> SecrecyLevel
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 SecrecyLevel
impl Debug for SecrecyLevel
Source§impl<'de> Deserialize<'de> for SecrecyLevel
impl<'de> Deserialize<'de> for SecrecyLevel
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 SecrecyLevel
impl PartialEq for SecrecyLevel
Source§impl Serialize for SecrecyLevel
impl Serialize for SecrecyLevel
impl Copy for SecrecyLevel
impl Eq for SecrecyLevel
impl StructuralPartialEq for SecrecyLevel
Auto Trait Implementations§
impl Freeze for SecrecyLevel
impl RefUnwindSafe for SecrecyLevel
impl Send for SecrecyLevel
impl Sync for SecrecyLevel
impl Unpin for SecrecyLevel
impl UnwindSafe for SecrecyLevel
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