pub enum Operation {
Create,
Read,
Modify,
Replace,
Delete,
ReadHeader,
}
Expand description
Enumeration of the used operation of a REST API.
The operations are defined in a logical sense thus being abstract over the HTTP operations like POST, GET, PUT, PATCH, etc.
Variants§
Create
Create a new entity
Read
Get an entity or resource
Modify
Modify an existing entity
Replace
Replace an existing entity
Delete
Delete an entity
ReadHeader
Get the header data or short info about an entity
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin 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