pub struct TemplateField {
pub name: String,
pub kind: Kind,
pub value: String,
}Expand description
Field used within the scope of a single template.
Fields§
§name: StringField name
kind: KindSpecifies the type of the value.
value: StringValidated by kind at build time.
Fixed to String type for now.
Trait Implementations§
Source§impl Clone for TemplateField
impl Clone for TemplateField
Source§fn clone(&self) -> TemplateField
fn clone(&self) -> TemplateField
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 moreSource§impl Debug for TemplateField
impl Debug for TemplateField
Source§impl<'de> Deserialize<'de> for TemplateField
impl<'de> Deserialize<'de> for TemplateField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TemplateField
impl RefUnwindSafe for TemplateField
impl Send for TemplateField
impl Sync for TemplateField
impl Unpin for TemplateField
impl UnwindSafe for TemplateField
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