pub struct FileCredentials { /* private fields */ }Expand description
File-backed SeedCredentials.
Implementations§
Source§impl FileCredentials
impl FileCredentials
Sourcepub fn operator_default() -> Result<Self, RuntimeError>
pub fn operator_default() -> Result<Self, RuntimeError>
The operator store: the resolved runtime root (see
RuntimePaths), then SEED_SECRETS_SUBDIR.
Tokens used to live under ~/.clawft regardless of project. When a
project root has no store yet but the legacy one exists, the legacy
store is used (WARN); secrets are never moved automatically.
Trait Implementations§
Source§impl Clone for FileCredentials
impl Clone for FileCredentials
Source§impl Debug for FileCredentials
impl Debug for FileCredentials
Source§impl SeedCredentials for FileCredentials
impl SeedCredentials for FileCredentials
Source§fn get(&self, node_id: &str) -> Result<SecretString, RuntimeError>
fn get(&self, node_id: &str) -> Result<SecretString, RuntimeError>
Token for
node_id.Source§fn put(&self, node_id: &str, token: SecretString) -> Result<(), RuntimeError>
fn put(&self, node_id: &str, token: SecretString) -> Result<(), RuntimeError>
Store a token for
node_id.Auto Trait Implementations§
impl Freeze for FileCredentials
impl RefUnwindSafe for FileCredentials
impl Send for FileCredentials
impl Sync for FileCredentials
impl Unpin for FileCredentials
impl UnsafeUnpin for FileCredentials
impl UnwindSafe for FileCredentials
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more