[][src]Struct amethyst_cli::New

pub struct New {
    pub project_name: String,
    pub version: Option<String>,
    pub no_defaults: bool,
}

Options for the New subcommand. If version is None, then it uses the latest version available

Fields

project_name: Stringversion: Option<String>no_defaults: bool

Implementations

impl New[src]

pub fn execute(&self) -> Result<()>[src]

Creates the project template.

Errors

Fails if the project directory already exists, or when failing to create the directory.

Trait Implementations

impl Clone for New[src]

impl Debug for New[src]

impl Default for New[src]

Auto Trait Implementations

impl RefUnwindSafe for New

impl Send for New

impl Sync for New

impl Unpin for New

impl UnwindSafe for New

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err