Enum reep::resource_endpoint::ResourceMethod
[−]
[src]
#[repr(u8)]pub enum ResourceMethod { Create, List, Get, Replace, Delete, HttpHead, HttpHeadList, CustomHttpOptions, CustomHttpOptionsList, }
The ResourceMethod is like a Http Method but in the Context of a Resource. Expect the nomral Methods there are Hooks for defining Head and Option Hanlders
Variants
Create
Referes to Creating a Resource (Http Post on /)
List
Referes to Listing all Resources (Http Get on /)
Get
Referes to Accessing a single Resource by id (Http Get on /:resource_id)
Replace
Referes to Replacing a single Resource by id (Http Put on /:resource_id)
Delete
Referes to Deleting a single Resource by id (Http Delete on /:resource_id)
HttpHead
Use to define a Http Head Method Handler on /
HttpHeadList
Use to define a Http Head Method Handler on /:resource_id
CustomHttpOptions
Use to define a Http Option Method Handler on / (simple one is supplied by default)
CustomHttpOptionsList
Use to define a Http Option Method Handler on /:resource_id (simple one is supplied by default)
Trait Implementations
impl Clone for ResourceMethod
[src]
fn clone(&self) -> ResourceMethod
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for ResourceMethod
[src]
impl Debug for ResourceMethod
[src]
impl PartialEq for ResourceMethod
[src]
fn eq(&self, __arg_0: &ResourceMethod) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.