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
StringList(Vec<String>)

Tuple Fields of StringList

0: Vec<String>
None

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.