Struct cargo_fmt::Opts[][src]

pub struct Opts {
    quiet: bool,
    verbose: bool,
    version: bool,
    packages: Vec<String>,
    manifest_path: Option<String>,
    message_format: Option<String>,
    rustfmt_options: Vec<String>,
    format_all: bool,
}

Fields

quiet: bool

No output printed to stdout

verbose: bool

Use verbose output

version: bool

Print rustfmt version and exit

packages: Vec<String>

Specify package to format (only usable in workspaces)

manifest_path: Option<String>

Specify path to Cargo.toml

message_format: Option<String>

Specify message-format: short|json|human

rustfmt_options: Vec<String>

Options passed to rustfmt

format_all: bool

Format all packages (only usable in workspaces)

Trait Implementations

Formats the value using the given formatter. Read more

Returns the corresponding clap::App.

Creates the struct from clap::ArgMatches. It cannot fail with a parameter generated by clap by construction. Read more

Gets the struct from the command line arguments. Print the error message and quit the program in case of failure. Read more

Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more

Gets the struct from any iterator such as a Vec of your making. 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

Performs the conversion.

Performs the conversion.

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.

Layout

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 104 bytes