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

Referes to Creating a Resource (Http Post on /)

Referes to Listing all Resources (Http Get on /)

Referes to Accessing a single Resource by id (Http Get on /:resource_id)

Referes to Replacing a single Resource by id (Http Put on /:resource_id)

Referes to Deleting a single Resource by id (Http Delete on /:resource_id)

Use to define a Http Head Method Handler on /

Use to define a Http Head Method Handler on /:resource_id

Use to define a Http Option Method Handler on / (simple one is supplied by default)

Use to define a Http Option Method Handler on /:resource_id (simple one is supplied by default)

Trait Implementations

impl Clone for ResourceMethod
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ResourceMethod
[src]

impl Debug for ResourceMethod
[src]

Formats the value using the given formatter.

impl PartialEq for ResourceMethod
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ResourceMethod
[src]