Enum darklua_core::rules::RuleConfigurationError [−][src]
pub enum RuleConfigurationError {
UnexpectedProperty(String),
MissingProperty(String),
StringExpected(String),
UsizeExpected(String),
StringListExpected(String),
UnexpectedValueType(String),
}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.
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.
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.
Trait Implementations
impl Clone for RuleConfigurationError[src]
impl Clone for RuleConfigurationError[src]fn clone(&self) -> RuleConfigurationError[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for RuleConfigurationError
impl RefUnwindSafe for RuleConfigurationErrorimpl Send for RuleConfigurationError
impl Send for RuleConfigurationErrorimpl Sync for RuleConfigurationError
impl Sync for RuleConfigurationErrorimpl Unpin for RuleConfigurationError
impl Unpin for RuleConfigurationErrorimpl UnwindSafe for RuleConfigurationError
impl UnwindSafe for RuleConfigurationError