Trait ajars_core::RestType

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

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

Required Methods§

source

fn path(&self) -> &str

source

fn method(&self) -> &HttpMethod

Provided Methods§

source

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

Object Safety§

This trait is not object safe.

Implementors§