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 of Boolean
0: bool
String(String)
Tuple Fields of String
0: String
Usize(usize)
Tuple Fields of Usize
0: usize
Float(f64)
Tuple Fields of Float
0: f64
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