pub struct TemplateOption {
pub name: String,
pub label: String,
pub description: String,
pub option_type: OptionType,
pub default: Value,
pub required: bool,
}Expand description
A configurable option for a template.
Fields§
§name: StringOption name/key.
label: StringHuman-readable label.
description: StringOption description.
option_type: OptionTypeType of option.
default: ValueDefault value.
required: boolWhether this option is required.
Trait Implementations§
Source§impl Clone for TemplateOption
impl Clone for TemplateOption
Source§fn clone(&self) -> TemplateOption
fn clone(&self) -> TemplateOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TemplateOption
impl Debug for TemplateOption
Source§impl<'de> Deserialize<'de> for TemplateOption
impl<'de> Deserialize<'de> for TemplateOption
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 TemplateOption
impl RefUnwindSafe for TemplateOption
impl Send for TemplateOption
impl Sync for TemplateOption
impl Unpin for TemplateOption
impl UnsafeUnpin for TemplateOption
impl UnwindSafe for TemplateOption
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