GenericClient

Trait GenericClient 

Source
pub trait GenericClient<RB>: Send + Sync {
    // Required method
    fn request(&self, method: Method, url: &str) -> RB;

    // Provided methods
    fn get(&self, url: &str) -> RB { ... }
    fn post(&self, url: &str) -> RB { ... }
    fn put(&self, url: &str) -> RB { ... }
    fn patch(&self, url: &str) -> RB { ... }
    fn delete(&self, url: &str) -> RB { ... }
    fn head(&self, url: &str) -> RB { ... }
    fn options(&self, url: &str) -> RB { ... }
}

Required Methods§

Source

fn request(&self, method: Method, url: &str) -> RB

Provided Methods§

Source

fn get(&self, url: &str) -> RB

Source

fn post(&self, url: &str) -> RB

Source

fn put(&self, url: &str) -> RB

Source

fn patch(&self, url: &str) -> RB

Source

fn delete(&self, url: &str) -> RB

Source

fn head(&self, url: &str) -> RB

Source

fn options(&self, url: &str) -> RB

Implementors§