[][src]Struct rmemo::config::Config

pub struct Config {
    pub enter_time_in_filename: Option<bool>,
    // some fields omitted
}

Structure that loads setting information from file and mapping

Fields

enter_time_in_filename: Option<bool>

Methods

impl Config[src]

pub fn load_config() -> Result<Config, Error>[src]

Read the file in which the setting file is described. If not, create it

pub fn load_or_create_config_file() -> Result<File, Error>[src]

Get the file pointer of the setting file. When there is no file, a setting file is created.

pub fn memos_dir(&self) -> &String[src]

Unwrap and return the memo_dir property

pub fn enter_time_in_filename(&self) -> bool[src]

Unwrap and return the enter_time_in_filename property

pub fn editor(&self) -> &String[src]

Unwrap and return the editor property

pub fn selector(&self) -> &String[src]

Unwrap and return the selector property

pub fn grep_command(&self) -> &String[src]

Unwrap and return the grep_command property

pub fn template_file_path(&self) -> &String[src]

Unwrap and return the template_file_path property

Trait Implementations

impl Default for Config[src]

impl Debug for Config[src]

impl<'de> Deserialize<'de> for Config[src]

impl Serialize for Config[src]

Auto Trait Implementations

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

impl RefUnwindSafe for Config

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Typeable for T where
    T: Any

impl<T> IntoCollection<T> for T

impl<T, I> AsResult<T, I> for T where
    I: Input,