pub enum SecretKind {
Password,
ApiToken,
Note,
Generic,
}Expand description
Category of a stored secret. Additive: only APPEND new variants, so a record written by an older build keeps decoding under bincode’s integer tag.
Variants§
Password
A login password.
ApiToken
An API token or other bearer credential.
Note
A free-form secret note.
Generic
Any other secret material that does not fit the categories above.
Trait Implementations§
Source§impl Clone for SecretKind
impl Clone for SecretKind
impl Copy for SecretKind
Source§impl Debug for SecretKind
impl Debug for SecretKind
Source§impl<'de> Deserialize<'de> for SecretKind
impl<'de> Deserialize<'de> for SecretKind
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
impl Eq for SecretKind
Source§impl PartialEq for SecretKind
impl PartialEq for SecretKind
Source§impl Serialize for SecretKind
impl Serialize for SecretKind
impl StructuralPartialEq for SecretKind
Auto Trait Implementations§
impl Forget for SecretKind
impl Freeze for SecretKind
impl Move for SecretKind
impl RefUnwindSafe for SecretKind
impl Send for SecretKind
impl Sync for SecretKind
impl Unpin for SecretKind
impl UnsafeUnpin for SecretKind
impl UnwindSafe for SecretKind
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