pub struct TemplateParam {
pub name: String,
pub description: Option<String>,
pub required: bool,
pub param_type: String,
pub default_value: Option<Value>,
}
Expand description
Template parameter definition
Fields§
§name: String
Parameter name
description: Option<String>
Parameter description
required: bool
Whether the parameter is required
param_type: String
Parameter type
default_value: Option<Value>
Default value
Trait Implementations§
Source§impl Clone for TemplateParam
impl Clone for TemplateParam
Source§fn clone(&self) -> TemplateParam
fn clone(&self) -> TemplateParam
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 TemplateParam
impl RefUnwindSafe for TemplateParam
impl Send for TemplateParam
impl Sync for TemplateParam
impl Unpin for TemplateParam
impl UnwindSafe for TemplateParam
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