Expand description
Structure that loads setting information from file and mapping
Fields
enter_time_in_filename: Option<bool>
Implementations
sourceimpl Config
impl Config
sourcepub fn load_config() -> Result<Config>
pub fn load_config() -> Result<Config>
Read the file in which the setting file is described. If not, create it
sourcepub fn load_or_create_config_file() -> File
pub fn load_or_create_config_file() -> File
Get the file pointer of the setting file. When there is no file, a setting file is created.
sourcepub fn enter_time_in_filename(&self) -> bool
pub fn enter_time_in_filename(&self) -> bool
Unwrap and return the enter_time_in_filename property
sourcepub fn grep_command(&self) -> &String
pub fn grep_command(&self) -> &String
Unwrap and return the grep_command property
sourcepub fn template_file_path(&self) -> &String
pub fn template_file_path(&self) -> &String
Unwrap and return the template_file_path property
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more