pub struct ParameterDef {
pub name: String,
pub param_type: ParameterType,
pub default_value: Option<String>,
pub description: Option<String>,
}Expand description
A parameter definition for a rule template
Fields§
§name: StringParameter name
param_type: ParameterTypeParameter type
default_value: Option<String>Default value for the parameter
description: Option<String>Human-readable description
Trait Implementations§
Source§impl Clone for ParameterDef
impl Clone for ParameterDef
Source§fn clone(&self) -> ParameterDef
fn clone(&self) -> ParameterDef
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 ParameterDef
impl Debug for ParameterDef
Source§impl<'de> Deserialize<'de> for ParameterDef
impl<'de> Deserialize<'de> for ParameterDef
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 ParameterDef
impl RefUnwindSafe for ParameterDef
impl Send for ParameterDef
impl Sync for ParameterDef
impl Unpin for ParameterDef
impl UnwindSafe for ParameterDef
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