Enum darklua_core::rules::RuleConfigurationError [−][src]
pub enum RuleConfigurationError {
UnexpectedProperty(String),
MissingProperty(String),
StringExpected(String),
UsizeExpected(String),
StringListExpected(String),
UnexpectedValueType(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.
Tuple Fields of UnexpectedProperty
0: String
MissingProperty(String)
When a rule has a required property. The string should be the field name.
Tuple Fields of MissingProperty
0: String
StringExpected(String)
When a property is associated with something else than an expected string. The string is the property name.
Tuple Fields of StringExpected
0: String
UsizeExpected(String)
When a property is associated with something else than an expected unsigned number. The string is the property name.
Tuple Fields of UsizeExpected
0: String
StringListExpected(String)
When a property is associated with something else than an expected list of strings. The string is the property name.
Tuple Fields of StringListExpected
0: String
UnexpectedValueType(String)
When the value type is invalid. The string is the property name that was given the wrong value type.
Tuple Fields of UnexpectedValueType
0: String
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