Struct UserConfigSource
pub struct UserConfigSource { /* private fields */ }Expand description
Specifies the format for a user’s configuration file.
Usually located at ~/.cipherstash/config.toml.
See the module-level documentation for more details.
Implementations§
§impl UserConfigSource
impl UserConfigSource
pub const DEFAULT_FILE_NAME: &'static str = "config.toml"
pub const DEFAULT_FILE_NAME: &'static str = "config.toml"
The default file name for the local configuration file.
pub const DEFAULT_FILE_PATH: &'static str = ".cipherstash"
pub const DEFAULT_FILE_PATH: &'static str = ".cipherstash"
The default file path for the local configuration file (relative to the home directory).
pub fn workspace_crn(&self) -> Option<Crn>
pub fn workspace_crn(&self) -> Option<Crn>
Returns the workspace CRN if set.
pub fn set_current_workspace(&mut self, crn: Crn)
pub fn set_current_workspace(&mut self, crn: Crn)
Sets the current workspace CRN.
Trait Implementations§
§impl Debug for UserConfigSource
impl Debug for UserConfigSource
§impl<'de> Deserialize<'de> for UserConfigSource
impl<'de> Deserialize<'de> for UserConfigSource
§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 IntoFileSource for UserConfigSource
impl IntoFileSource for UserConfigSource
§impl Serialize for UserConfigSource
impl Serialize for UserConfigSource
Auto Trait Implementations§
impl Freeze for UserConfigSource
impl RefUnwindSafe for UserConfigSource
impl Send for UserConfigSource
impl Sync for UserConfigSource
impl Unpin for UserConfigSource
impl UnsafeUnpin for UserConfigSource
impl UnwindSafe for UserConfigSource
Blanket Implementations§
impl<T> AuthStrategyBounds for T
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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