Request

Trait Request 

Source
pub trait Request: Sized + Clone {
    type Builder: Default;
    type Response;

    const REQUEST_TYPE: &'static str;

    // Required methods
    fn url(&self) -> &String;
    fn into_url(self) -> String;

    // Provided method
    fn builder() -> Self::Builder { ... }
}

Required Associated Constants§

Source

const REQUEST_TYPE: &'static str

Required Associated Types§

Required Methods§

Source

fn url(&self) -> &String

Source

fn into_url(self) -> String

Provided Methods§

Source

fn builder() -> Self::Builder

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§