pub struct Args {
    pub version: bool,
    pub format: Option<Format>,
}
Expand description

I need to explain this, I guess

Source at https://github.com/Canop/csv2svg

Fields

version: bool

print the version

format: Option<Format>

output format: “svg” or “html”

Trait Implementations

Formats the value using the given formatter. Read more

Construct the type from an input set of arguments. Read more

Get a String with just the argument names, e.g., options, flags, subcommands, etc, but without the values of the options and arguments. This can be useful as a means to capture anonymous usage statistics without revealing the content entered by the end user. Read more

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.

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.