Struct thor::cli::ConfigManager
source · pub struct ConfigManager {
app_name: String,
}
Fields§
§app_name: String
Implementations§
source§impl ConfigManager
impl ConfigManager
pub fn new(app_name: impl Into<String>) -> Self
pub fn save_config(&self, config: &Config) -> Result<(), Error>
pub fn alias_secret_file(&self, alias: &Alias) -> Result<PathBuf, Error>
pub fn read_config(&self) -> Result<Config, Error>
pub fn app_dir(&self) -> Result<PathBuf, Error>
pub fn config_file(&self) -> Result<PathBuf, Error>
Auto Trait Implementations§
impl RefUnwindSafe for ConfigManager
impl Send for ConfigManager
impl Sync for ConfigManager
impl Unpin for ConfigManager
impl UnwindSafe for ConfigManager
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request