pub enum ActionTagDirective {
AllowAll,
Include(Vec<String>),
Exclude(Vec<String>),
}
Expand description
A value which directs how to include Actions based on their tags.
Variants§
AllowAll
Include all of the Actions in the Config
Include(Vec<String>)
Only include the Actions which match the given tags
Exclude(Vec<String>)
Include all tags excluding the given tags
Implementations§
source§impl ActionTagDirective
impl ActionTagDirective
Creates a new ActionTagDirective based on the following rules,
- AllowAll iff tags is empty and exclude_tags is empty.
- Include if tags is not empty and exclude_tags is empty.
- Include if tags is not empty and exclude_tags is not empty, in this situation the exclude_ags will be ignored since include implies excluding all other tags.
- Exclude iff tags is empty and exclude_tags is not empty.