pub struct Rule {
    pub name: String,
    pub description: String,
    pub priority: i32,
    pub condition: fn(_: &mut HashMap<String, String>) -> Result<bool, RuleError>,
    pub action: fn(_: &mut HashMap<String, String>) -> Result<bool, RuleError>,
}

Fields

name: Stringdescription: Stringpriority: i32condition: fn(_: &mut HashMap<String, String>) -> Result<bool, RuleError>action: fn(_: &mut HashMap<String, String>) -> Result<bool, RuleError>

Implementations

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.