pub enum CredentialStoreKind {
File,
Keychain,
}Expand description
Which backend holds secrets.
Variants§
File
~/.leviath/config.toml and ~/.leviath/mcp-auth.json, mode 0600.
Keychain
The OS credential store.
Implementations§
Source§impl CredentialStoreKind
impl CredentialStoreKind
Sourcepub fn is_keychain(self) -> bool
pub fn is_keychain(self) -> bool
True when secrets belong in the OS store rather than in Leviath’s files.
Trait Implementations§
Source§impl Clone for CredentialStoreKind
impl Clone for CredentialStoreKind
Source§fn clone(&self) -> CredentialStoreKind
fn clone(&self) -> CredentialStoreKind
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 moreimpl Copy for CredentialStoreKind
Source§impl Debug for CredentialStoreKind
impl Debug for CredentialStoreKind
Source§impl Default for CredentialStoreKind
impl Default for CredentialStoreKind
Source§fn default() -> CredentialStoreKind
fn default() -> CredentialStoreKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CredentialStoreKind
impl<'de> Deserialize<'de> for CredentialStoreKind
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 CredentialStoreKind
Source§impl PartialEq for CredentialStoreKind
impl PartialEq for CredentialStoreKind
Source§impl Serialize for CredentialStoreKind
impl Serialize for CredentialStoreKind
impl StructuralPartialEq for CredentialStoreKind
Auto Trait Implementations§
impl Freeze for CredentialStoreKind
impl RefUnwindSafe for CredentialStoreKind
impl Send for CredentialStoreKind
impl Sync for CredentialStoreKind
impl Unpin for CredentialStoreKind
impl UnsafeUnpin for CredentialStoreKind
impl UnwindSafe for CredentialStoreKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.