Struct devlog::config::Config[][src]

pub struct Config { /* fields omitted */ }


impl Config[src]

pub fn new(repo_dir: &Path, editor_prog: &str) -> Config[src]

Create a new configuration object with the specified configuration values. This is used mainly for testing.

pub fn load() -> Config[src]

Load configuration from environment variables, providing defaults if the environment variables are not defined.

pub fn repo_dir(&self) -> &Path[src]

The directory of the user’s devlog repository, which may or may not exist. Defaults to “$HOME/devlogs”

pub fn editor_prog(&self) -> &str[src]

The text editor program for editing devlog entry files. Defaults to “nano”.

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

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

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