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 (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 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<SecrecyLevel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SecrecyLevel, <__D as Deserializer<'de>>::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§fn eq(&self, other: &SecrecyLevel) -> bool
fn eq(&self, other: &SecrecyLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SecrecyLevel
impl Serialize for SecrecyLevel
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 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 UnsafeUnpin for SecrecyLevel
impl UnwindSafe for SecrecyLevel
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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