pub struct FileKeyringStore { /* private fields */ }Expand description
JSON-on-disk fallback for headless environments without a Secret
Service / dbus. Stored at <home>/.deepseek/secrets/secrets.json
with mode 0600.
Implementations§
Source§impl FileKeyringStore
impl FileKeyringStore
Sourcepub fn default_path() -> Result<PathBuf, SecretsError>
pub fn default_path() -> Result<PathBuf, SecretsError>
Default path: <home>/.deepseek/secrets/secrets.json. Honours
HOME (Unix) and USERPROFILE (Windows) via the dirs crate.
Trait Implementations§
Source§impl Clone for FileKeyringStore
impl Clone for FileKeyringStore
Source§fn clone(&self) -> FileKeyringStore
fn clone(&self) -> FileKeyringStore
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 FileKeyringStore
impl Debug for FileKeyringStore
Source§impl KeyringStore for FileKeyringStore
impl KeyringStore for FileKeyringStore
Source§fn get(&self, key: &str) -> Result<Option<String>, SecretsError>
fn get(&self, key: &str) -> Result<Option<String>, SecretsError>
Read a secret. Returns
Ok(None) if no entry exists.Source§fn set(&self, key: &str, value: &str) -> Result<(), SecretsError>
fn set(&self, key: &str, value: &str) -> Result<(), SecretsError>
Write a secret, replacing any existing value.
Source§fn delete(&self, key: &str) -> Result<(), SecretsError>
fn delete(&self, key: &str) -> Result<(), SecretsError>
Remove a secret. Should not error if the entry is absent.
Source§fn backend_name(&self) -> &'static str
fn backend_name(&self) -> &'static str
Short, human-readable name of the backend (used by
doctor).Auto Trait Implementations§
impl Freeze for FileKeyringStore
impl RefUnwindSafe for FileKeyringStore
impl Send for FileKeyringStore
impl Sync for FileKeyringStore
impl Unpin for FileKeyringStore
impl UnsafeUnpin for FileKeyringStore
impl UnwindSafe for FileKeyringStore
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