[][src]Struct quickmd::input::Options

pub struct Options {
    pub debug: bool,
    pub input_file: PathBuf,
    pub watch: bool,
    pub output_dir: Option<PathBuf>,
}

Command-line options. Managed by StructOpt.

Fields

debug: bool

Activates debug logging

input_file: PathBuf

Markdown file to render. Use "-" to read markdown from STDIN (implies --no-watch)

watch: bool

Disables watching file for changes

output_dir: Option<PathBuf>

Builds output HTML and other assets in the given directory instead of in a tempdir. Will be created if it doesn't exist. Not deleted on application exit.

Implementations

impl Options[src]

pub fn init_logging(&self)[src]

Start logging based on input flags.

With --debug:

  • All logs
  • Timestamps
  • Module path context

Otherwise:

  • Only warnings and errors
  • Minimal formatting

Trait Implementations

impl Debug for Options[src]

impl StructOpt for Options[src]

impl StructOptInternal for Options[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.

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