pub enum ResourceAction {
Read,
List,
Create,
Update,
Patch,
Delete,
Restore,
HardDelete,
Custom(&'static str),
}Expand description
Standard CRUD operations that a resource policy can gate.
Variants§
Read
Read / fetch a single entity.
List
List / query multiple entities.
Create
Create a new entity.
Update
Fully update an entity.
Patch
Partially update an entity.
Delete
Soft-delete an entity.
Restore
Restore a soft-deleted entity.
HardDelete
Permanently delete an entity.
Custom(&'static str)
Custom action for domain-specific operations.
Implementations§
Trait Implementations§
Source§impl Clone for ResourceAction
impl Clone for ResourceAction
impl Copy for ResourceAction
Source§impl Debug for ResourceAction
impl Debug for ResourceAction
impl Eq for ResourceAction
Source§impl Hash for ResourceAction
impl Hash for ResourceAction
Source§impl PartialEq for ResourceAction
impl PartialEq for ResourceAction
impl StructuralPartialEq for ResourceAction
Auto Trait Implementations§
impl Freeze for ResourceAction
impl RefUnwindSafe for ResourceAction
impl Send for ResourceAction
impl Sync for ResourceAction
impl Unpin for ResourceAction
impl UnsafeUnpin for ResourceAction
impl UnwindSafe for ResourceAction
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