pub struct Template {
pub name: &'static str,
pub summary: &'static str,
pub text: &'static str,
}Expand description
One template: its name, a one-line summary, and the file text.
Fields§
§name: &'static strThe name init --template takes.
summary: &'static strThe line init --list prints after the name.
text: &'static strThe site file, as init writes it.
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
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