pub struct KeyringEntry {
pub id: String,
pub dotpath: String,
pub value: String,
pub is_optional: bool,
}Expand description
A single keyring entry containing the keyring id and its plaintext value.
Fields§
§id: StringUnique keyring id as declared in the TS schema via keyring(T, { id }).
dotpath: StringDot-separated path to this field inside the config object (e.g. "database.password").
value: StringPlaintext value to store in the OS keyring.
is_optional: boolWhen true, a “not found” keyring error on read is treated as absent (null) rather than an error.
Trait Implementations§
Source§impl Clone for KeyringEntry
impl Clone for KeyringEntry
Source§fn clone(&self) -> KeyringEntry
fn clone(&self) -> KeyringEntry
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 KeyringEntry
impl Debug for KeyringEntry
Source§impl<'de> Deserialize<'de> for KeyringEntry
impl<'de> Deserialize<'de> for KeyringEntry
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
Auto Trait Implementations§
impl Freeze for KeyringEntry
impl RefUnwindSafe for KeyringEntry
impl Send for KeyringEntry
impl Sync for KeyringEntry
impl Unpin for KeyringEntry
impl UnsafeUnpin for KeyringEntry
impl UnwindSafe for KeyringEntry
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