pub(crate) struct Args {
    pub(crate) manifest_path: Option<PathBuf>,
    pub(crate) out: PathBuf,
    pub(crate) template: PathBuf,
}

Fields

manifest_path: Option<PathBuf>

Path to Cargo.toml.

out: PathBuf

Output File.

template: PathBuf

Template File. This is processed by Tera. Look at the source code for cargo-doc2readme for an example.

Trait Implementations

Parse from std::env::args_os(), exit on error

Parse from std::env::args_os(), return Err on error.

Parse from iterator, exit on error

Parse from iterator, return Err on error.

It’s common to have an “application context” struct (sometimes called config) that represents all the normalized values after being processed by the CLI. Read more

@TODO @release @docs

@TODO @release @docs

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.