[][src]Struct kickstart::generation::Template

pub struct Template { /* fields omitted */ }

The current template being generated

Methods

impl Template[src]

pub fn from_input(input: &str, sub_dir: Option<&str>) -> Result<Template>[src]

Load a template from a string. It will try to detect whether this is a local folder or whether it should try to clone it.

pub fn from_git(remote: &str, sub_dir: Option<&str>) -> Result<Template>[src]

Load a template from git. This will clone the repository if possible in the temporary directory of the user

pub fn from_local(path: &PathBuf, sub_dir: Option<&str>) -> Template[src]

pub fn generate(&self, output_dir: &PathBuf, no_input: bool) -> Result<()>[src]

Generate the template at the given output directory

Trait Implementations

impl Debug for Template[src]

impl PartialEq<Template> for Template[src]

impl StructuralPartialEq for Template[src]

Auto Trait Implementations

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