[−][src]Struct kickstart::generation::Template
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
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,