Enum darklua_core::rules::RulePropertyValue
source · [−]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)
String(String)
Usize(usize)
Float(f64)
StringList(Vec<String>)
None
Trait Implementations
sourceimpl Debug for RulePropertyValue
impl Debug for RulePropertyValue
sourceimpl<'de> Deserialize<'de> for RulePropertyValue
impl<'de> Deserialize<'de> for RulePropertyValue
sourcefn 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
sourceimpl From<&'_ str> for RulePropertyValue
impl From<&'_ str> for RulePropertyValue
sourceimpl<T: Into<RulePropertyValue>> From<Option<T>> for RulePropertyValue
impl<T: Into<RulePropertyValue>> From<Option<T>> for RulePropertyValue
sourceimpl From<String> for RulePropertyValue
impl From<String> for RulePropertyValue
sourceimpl From<bool> for RulePropertyValue
impl From<bool> for RulePropertyValue
sourceimpl From<f64> for RulePropertyValue
impl From<f64> for RulePropertyValue
sourceimpl From<usize> for RulePropertyValue
impl From<usize> for RulePropertyValue
sourceimpl PartialEq<RulePropertyValue> for RulePropertyValue
impl PartialEq<RulePropertyValue> for RulePropertyValue
sourcefn eq(&self, other: &RulePropertyValue) -> bool
fn eq(&self, other: &RulePropertyValue) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RulePropertyValue) -> bool
fn ne(&self, other: &RulePropertyValue) -> bool
This method tests for !=.
sourceimpl Serialize for RulePropertyValue
impl Serialize for RulePropertyValue
impl StructuralPartialEq for RulePropertyValue
Auto Trait Implementations
impl RefUnwindSafe for RulePropertyValue
impl Send for RulePropertyValue
impl Sync for RulePropertyValue
impl Unpin for RulePropertyValue
impl UnwindSafe for RulePropertyValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more