[][src]Struct cargo_inspect::config::Config

pub struct Config {
    pub input: Option<PathBuf>,
    pub files: Option<(String, String)>,
    pub unpretty: String,
    pub format: String,
    pub verbose: bool,
    pub plain: bool,
    pub theme: Option<String>,
    pub list_themes: bool,
}

Holds all configuration options when using cargo-inspect as a library.

Fields

input: Option<PathBuf>

Input file

files: Option<(String, String)>

Diff input files

unpretty: String

rustc "unpretty" parameters

Note: For --unpretty=flowgraph=[symbol] you need to have dot on your PATH.

format: String

Override for the format that gets outputted when the unpretty mode is set to flowgraph

verbose: bool

Print the original code as a comment above the desugared code

plain: bool

Don't highlight output

theme: Option<String>

Specify a theme override for the pretty printer

list_themes: bool

Should we list all pretty printer themes?

Trait Implementations

impl Debug for Config[src]

impl StructOpt for Config[src]

impl StructOptInternal for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

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>,