pub enum Operation {
List,
Create,
Read,
Update,
Delete,
}Expand description
Which operation is running.
The five JSON:API operations, named as api! names them —
so a hook’s match reads like the operations list that routed them.
Variants§
List
GET on the collection.
Create
POST on the collection.
Read
GET on one resource.
Update
PATCH on one resource.
Delete
DELETE on one resource.
Implementations§
Trait Implementations§
impl Copy for Operation
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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