[][src]Struct cargo_create::args::Args

pub struct Args {
    pub branch: Option<String>,
    pub config_path: bool,
    pub features: Option<Vec<String>>,
    pub force: bool,
    pub git: Option<String>,
    pub interactive: bool,
    pub name: Option<String>,
    pub parameters: Vec<String>,
    pub profile: Option<String>,
    pub verbosity: u8,
}

Fields

branch: Option<String>

The git branch to checkout.

If not specified the default remote branch is used.

config_path: bool

Prints the path to the user configuration file.

features: Option<Vec<String>>

The list of features to use.

The items are space delimited.

force: bool

If true overwrites the target folder even if it is non-empty.

git: Option<String>

The git repository to use as a template.

A branch can optionally be set by appending an @<branch name>.

interactive: bool

Whether to start the questioning process.

name: Option<String>

The name of the project to generate.

parameters: Vec<String>

Catch-all for custom variables.

profile: Option<String>

The profile to use

verbosity: u8

The verbosity of the logs.

Implementations

impl Args[src]

pub fn log_filter_from_verbose(&self) -> LevelFilter[src]

Returns the log filter for the given verbosity level.

Trait Implementations

impl Clap for Args[src]

impl Debug for Args[src]

impl FromArgMatches for Args[src]

impl IntoApp for Args[src]

Auto Trait Implementations

impl RefUnwindSafe for Args

impl Send for Args

impl Sync for Args

impl Unpin for Args

impl UnwindSafe for Args

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