Trait ajars::RestType

source ·
pub trait RestType<I, O>{
    // Required methods
    fn path(&self) -> &str;
    fn method(&self) -> &HttpMethod;

    // Provided method
    fn build<P>(method: HttpMethod, path: P) -> RestFluent<I, O>
       where P: Into<String> { ... }
}

Required Methods§

source

fn path(&self) -> &str

source

fn method(&self) -> &HttpMethod

Provided Methods§

source

fn build<P>(method: HttpMethod, path: P) -> RestFluent<I, O>
where P: Into<String>,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<I, O> RestType<I, O> for Rest<I, O>

source§

impl<I, O> RestType<I, O> for RestFluent<I, O>