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.
Auto Trait Implementations§
impl Freeze for ActionTagDirective
impl RefUnwindSafe for ActionTagDirective
impl Send for ActionTagDirective
impl Sync for ActionTagDirective
impl Unpin for ActionTagDirective
impl UnwindSafe for ActionTagDirective
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more