pub struct TemplateVariable {
pub name: String,
pub description: String,
pub default_value: Option<String>,
pub required: bool,
}Expand description
Template variable definition
Fields§
§name: StringName of the variable
description: StringDescription of what this variable is for
default_value: Option<String>Default value for this variable (if any)
required: boolWhether this variable is required
Trait Implementations§
Source§impl Clone for TemplateVariable
impl Clone for TemplateVariable
Source§fn clone(&self) -> TemplateVariable
fn clone(&self) -> TemplateVariable
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 TemplateVariable
impl Debug for TemplateVariable
Source§impl<'de> Deserialize<'de> for TemplateVariable
impl<'de> Deserialize<'de> for TemplateVariable
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 TemplateVariable
impl RefUnwindSafe for TemplateVariable
impl Send for TemplateVariable
impl Sync for TemplateVariable
impl Unpin for TemplateVariable
impl UnwindSafe for TemplateVariable
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