pub struct SecretRef {
pub label: &'static str,
pub account: String,
pub present: bool,
}Expand description
One OS-keychain entry belonging to a service.
Fields§
§label: &'static strHuman label, e.g. "token", "bot token", "client secret".
account: StringFull keychain account string passed to crate::secrets::store.
present: boolWhether the OS keychain currently has this entry.
Trait Implementations§
Source§impl Serialize for SecretRef
impl Serialize for SecretRef
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
Auto Trait Implementations§
impl Freeze for SecretRef
impl RefUnwindSafe for SecretRef
impl Send for SecretRef
impl Sync for SecretRef
impl Unpin for SecretRef
impl UnsafeUnpin for SecretRef
impl UnwindSafe for SecretRef
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