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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.