get

Function get 

Source
pub fn get<R: 'static + Request>(
    req: &R,
) -> Result<Vec<R::Response>, FetchError>
Expand description

Makes a request based on given type

§Errors

Returns error if something gone wrong during http requests and parsing json.

§Exemple

extern crate subspedia;

use subspedia::ReqSerieTraduzione;

fn main() {
    println!("{:#?}", subspedia::get(ReqSerieTraduzione).unwrap());
}