Enum darklua_core::rules::RulePropertyValue [−][src]
pub enum RulePropertyValue {
Boolean(bool),
String(String),
Usize(usize),
Float(f64),
StringList(Vec<String>),
None,
}Expand description
In order to be able to weakly-type the properties of any rule, this enum makes it possible to easily use serde to gather the value associated with a property.
Variants
Boolean(bool)
Tuple Fields
0: boolString(String)
Tuple Fields
0: StringUsize(usize)
Tuple Fields
0: usizeFloat(f64)
Tuple Fields
0: f64StringList(Vec<String>)
None
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
