Struct hugo_to_json::settings::Settings[][src]

pub struct Settings {
    pub scan_path: PathBuf,
    pub output: Option<PathBuf>,
    pub drafts: bool,
}

Represents the settings that can be provided either progamatically or as command line options.

Fields

scan_path: PathBuf

The path to Hugo’s contents directory. Defaults to ./content/

output: Option<PathBuf>

The path that index will be output to. If not provided, writes to stdout.

drafts: bool

Include drafts in the output. By default, drafts are not included.

Trait Implementations

impl Debug for Settings[src]

impl StructOpt for Settings[src]

impl StructOptInternal for Settings[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.