Trait canapi::Fetch[][src]

pub trait Fetch {
    fn fetch<T: Endpoint>(
        method: &'static str,
        url: String,
        query: Option<T>
    ) -> Result<T, Error>; }

Anything that can perform a network request to fetch an endpoint

Required Methods

Fetch a given endpoint

Implementors