Enum darklua_core::rules::RuleConfigurationError
source · [−]pub enum RuleConfigurationError {
UnexpectedProperty(String),
MissingProperty(String),
BooleanExpected(String),
StringExpected(String),
UsizeExpected(String),
FloatExpected(String),
StringListExpected(String),
UnexpectedValueType(String),
UnexpectedValue {
property: String,
message: String,
},
PropertyCollision(Vec<String>),
}Expand description
When implementing the configure method of the Rule trait, the method returns a result that uses this error type.
Variants
UnexpectedProperty(String)
When a rule gets an unknown property. The string should be the unknown field name.
MissingProperty(String)
When a rule has a required property. The string should be the field name.
BooleanExpected(String)
When a property is associated with something else than an expected boolean. The string is the property name.
StringExpected(String)
When a property is associated with something else than an expected string. The string is the property name.
UsizeExpected(String)
When a property is associated with something else than an expected unsigned number. The string is the property name.
FloatExpected(String)
When a property is associated with something else than an expected float. The string is the property name.
StringListExpected(String)
When a property is associated with something else than an expected list of strings. The string is the property name.
UnexpectedValueType(String)
When the value type is invalid. The string is the property name that was given the wrong value type.
UnexpectedValue
When the value is invalid.
PropertyCollision(Vec<String>)
When a rule cannot have multiple properties defined at the same time.
Trait Implementations
sourceimpl Clone for RuleConfigurationError
impl Clone for RuleConfigurationError
sourcefn clone(&self) -> RuleConfigurationError
fn clone(&self) -> RuleConfigurationError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RuleConfigurationError
impl Debug for RuleConfigurationError
sourceimpl Display for RuleConfigurationError
impl Display for RuleConfigurationError
sourceimpl PartialEq<RuleConfigurationError> for RuleConfigurationError
impl PartialEq<RuleConfigurationError> for RuleConfigurationError
sourcefn eq(&self, other: &RuleConfigurationError) -> bool
fn eq(&self, other: &RuleConfigurationError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RuleConfigurationError) -> bool
fn ne(&self, other: &RuleConfigurationError) -> bool
This method tests for !=.
impl Eq for RuleConfigurationError
impl StructuralEq for RuleConfigurationError
impl StructuralPartialEq for RuleConfigurationError
Auto Trait Implementations
impl RefUnwindSafe for RuleConfigurationError
impl Send for RuleConfigurationError
impl Sync for RuleConfigurationError
impl Unpin for RuleConfigurationError
impl UnwindSafe for RuleConfigurationError
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