pub enum ParameterKind {
Switch,
Variable,
SelfSwitch,
String,
Int,
IntBool,
Enum {
variants: Vec<(String, i8)>,
},
}Variants§
Switch
Parameter is a switch
Variable
Parameter is a variable
SelfSwitch
Parameter is a self switch
String
Parameter is a string
Int
Parameter is a signed integer
IntBool
Parameter is a bool stored as an integer
Enum
Parameter is a choice between a set of enums
The variants are a Vec of (String, i8) with the String being the variant, and the i8 being the value
Trait Implementations§
Source§impl Clone for ParameterKind
impl Clone for ParameterKind
Source§fn clone(&self) -> ParameterKind
fn clone(&self) -> ParameterKind
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 ParameterKind
impl Debug for ParameterKind
Source§impl Default for ParameterKind
impl Default for ParameterKind
Source§fn default() -> ParameterKind
fn default() -> ParameterKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParameterKind
impl<'de> Deserialize<'de> for ParameterKind
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
Source§impl<'_derivative_strum> From<&'_derivative_strum ParameterKind> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum ParameterKind> for &'static str
Source§fn from(x: &'_derivative_strum ParameterKind) -> &'static str
fn from(x: &'_derivative_strum ParameterKind) -> &'static str
Converts to this type from the input type.
Source§impl From<ParameterKind> for &'static str
impl From<ParameterKind> for &'static str
Source§fn from(x: ParameterKind) -> &'static str
fn from(x: ParameterKind) -> &'static str
Converts to this type from the input type.
Source§impl IntoEnumIterator for ParameterKind
impl IntoEnumIterator for ParameterKind
type Iterator = ParameterKindIter
fn iter() -> ParameterKindIter ⓘ
Source§impl PartialEq for ParameterKind
impl PartialEq for ParameterKind
Auto Trait Implementations§
impl Freeze for ParameterKind
impl RefUnwindSafe for ParameterKind
impl Send for ParameterKind
impl Sync for ParameterKind
impl Unpin for ParameterKind
impl UnwindSafe for ParameterKind
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