Enum darklua_core::rules::RuleConfigurationError [−][src]
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)
Tuple Fields
0: String
When a rule gets an unknown property. The string should be the unknown field name.
MissingProperty(String)
Tuple Fields
0: String
When a rule has a required property. The string should be the field name.
BooleanExpected(String)
Tuple Fields
0: String
When a property is associated with something else than an expected boolean. The string is the property name.
StringExpected(String)
Tuple Fields
0: String
When a property is associated with something else than an expected string. The string is the property name.
UsizeExpected(String)
Tuple Fields
0: String
When a property is associated with something else than an expected unsigned number. The string is the property name.
FloatExpected(String)
Tuple Fields
0: String
When a property is associated with something else than an expected float. The string is the property name.
StringListExpected(String)
Tuple Fields
0: String
When a property is associated with something else than an expected list of strings. The string is the property name.
UnexpectedValueType(String)
Tuple Fields
0: 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more