pub enum Action<'a> {
List,
Read,
Create,
Update,
Delete,
Export,
Custom(&'a str),
}Expand description
The operation being authorized. Borrows so Custom carries a handler’s
&str name without allocating; it’s Copy, and the lifetime elides to
Action<'_> at every call site.
Variants§
List
Read
Create
Update
Delete
Export
Custom(&'a str)
A custom action, identified by its CustomAction::name.
Implementations§
Trait Implementations§
impl<'a> Copy for Action<'a>
impl<'a> Eq for Action<'a>
impl<'a> StructuralPartialEq for Action<'a>
Auto Trait Implementations§
impl<'a> Freeze for Action<'a>
impl<'a> RefUnwindSafe for Action<'a>
impl<'a> Send for Action<'a>
impl<'a> Sync for Action<'a>
impl<'a> Unpin for Action<'a>
impl<'a> UnsafeUnpin for Action<'a>
impl<'a> UnwindSafe for Action<'a>
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