pub struct RunOptions {
pub variant: TemplateVariantInfo,
pub name: String,
pub output_path: PathBuf,
pub values: HashMap<String, String>,
pub accept_defaults: bool,
pub no_vcs: bool,
pub allow_overwrite: bool,
}Expand description
Options controlling the execution of a template.
Fields§
§variant: TemplateVariantInfoThe variant mode in which to run the template.
name: StringThe name of the generated item.
output_path: PathBufThe path at which to generate artefacts.
values: HashMap<String, String>The values to use for template parameters.
accept_defaults: boolIf true accept default values where available
no_vcs: boolIf true, do not create a .gitignore file
allow_overwrite: boolSkip the overwrite prompt if the output directory already contains files (or, if silent, allow overwrite instead of erroring).
Auto Trait Implementations§
impl Freeze for RunOptions
impl RefUnwindSafe for RunOptions
impl Send for RunOptions
impl Sync for RunOptions
impl Unpin for RunOptions
impl UnwindSafe for RunOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more