pub struct Vars<'a> {
pub project_name: &'a str,
pub project_name_snake: &'a str,
}Expand description
Variables the templates can reference. Kept tiny on purpose — the scaffold should be readable code with one or two substitutions, not a templating-engine dialect.
Fields§
§project_name: &'a strRaw name as supplied on the CLI (kebab-case, e.g. “my-app”).
Used in Cargo.toml’s name, README headings, etc.
project_name_snake: &'a strSnake-cased form of Self::project_name for Rust crate
identifiers and tracing-subscriber log targets.
Auto Trait Implementations§
impl<'a> Freeze for Vars<'a>
impl<'a> RefUnwindSafe for Vars<'a>
impl<'a> Send for Vars<'a>
impl<'a> Sync for Vars<'a>
impl<'a> Unpin for Vars<'a>
impl<'a> UnsafeUnpin for Vars<'a>
impl<'a> UnwindSafe for Vars<'a>
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