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
fn fetch<T: Endpoint>(
method: &'static str,
url: String,
query: Option<T>
) -> Result<T, Error>
method: &'static str,
url: String,
query: Option<T>
) -> Result<T, Error>
Fetch a given endpoint