Crate runeauth

Source

Macros§

restrictions

Structs§

Alternative
An Alternative is the smallest component of a rune. It consists of a single combination of a field name, a condition and a value that can be checked.
ConditionChecker
A Check trait implementation that checks for matching conditions. The ConditionChecker compares the String value against the condition of the Alternative.
MapChecker
A struct that implements the Check trait and checks conditions based on a HashMap<String, String>. It calls the ConditionChecker with the value for the key matching the alternative.
Restriction
Rune

Enums§

Condition
Conditions are the heart of a Rune. They are to be met and build [Alternatives] and [Restrictions].
RuneError

Traits§

Check
A trait that defines how an alternative is tested.

Functions§

add_padding
Add padding to the vec.