pub struct TemplateVar {
pub name: &'static str,
pub value: String,
}Expand description
Template variable that can be replaced in template files
Fields§
§name: &'static str§value: StringTrait Implementations§
Source§impl Clone for TemplateVar
impl Clone for TemplateVar
Source§fn clone(&self) -> TemplateVar
fn clone(&self) -> TemplateVar
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TemplateVar
impl RefUnwindSafe for TemplateVar
impl Send for TemplateVar
impl Sync for TemplateVar
impl Unpin for TemplateVar
impl UnwindSafe for TemplateVar
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