RequestType

Trait RequestType 

Source
pub trait RequestType {
    const METHOD: Method;
    const PATH_AND_QUERY: &'static str;
}
Expand description

Types that represent a request being made to the server.

Required Associated Constants§

Source

const METHOD: Method

The HTTP method included with the header.

Source

const PATH_AND_QUERY: &'static str

The component of the URI following the domain.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl RequestType for Cas

Source§

const METHOD: Method = Method::PUT

Source§

const PATH_AND_QUERY: &'static str = "/tree/entries/cas"

Source§

impl RequestType for Del

Source§

const METHOD: Method = Method::DELETE

Source§

const PATH_AND_QUERY: &'static str = "/tree/entries/delete"

Source§

impl RequestType for Flush

Source§

const METHOD: Method = Method::PUT

Source§

const PATH_AND_QUERY: &'static str = "/tree/entries/flush"

Source§

impl RequestType for Get

Source§

const METHOD: Method = Method::GET

Source§

const PATH_AND_QUERY: &'static str = "/tree/entries/get"

Source§

impl RequestType for Iter

Source§

const METHOD: Method = Method::GET

Source§

const PATH_AND_QUERY: &'static str = "/tree/entries/iter"

Source§

impl RequestType for Max

Source§

const METHOD: Method = Method::GET

Source§

const PATH_AND_QUERY: &'static str = "/tree/entries/max"

Source§

impl RequestType for Merge

Source§

const METHOD: Method = Method::POST

Source§

const PATH_AND_QUERY: &'static str = "/tree/entries/merge"

Source§

impl RequestType for Pred

Source§

const METHOD: Method = Method::GET

Source§

const PATH_AND_QUERY: &'static str = "/tree/entries/pred"

Source§

impl RequestType for PredIncl

Source§

const METHOD: Method = Method::GET

Source§

const PATH_AND_QUERY: &'static str = "/tree/entries/pred_incl"

Source§

impl RequestType for Scan

Source§

const METHOD: Method = Method::GET

Source§

const PATH_AND_QUERY: &'static str = "/tree/entries/scan"

Source§

impl RequestType for ScanRange

Source§

const METHOD: Method = Method::GET

Source§

const PATH_AND_QUERY: &'static str = "/tree/entries/scan_range"

Source§

impl RequestType for Set

Source§

const METHOD: Method = Method::POST

Source§

const PATH_AND_QUERY: &'static str = "/tree/entries/set"

Source§

impl RequestType for Succ

Source§

const METHOD: Method = Method::GET

Source§

const PATH_AND_QUERY: &'static str = "/tree/entries/succ"

Source§

impl RequestType for SuccIncl

Source§

const METHOD: Method = Method::GET

Source§

const PATH_AND_QUERY: &'static str = "/tree/entries/succ_incl"