Function subspedia_rs::get[][src]

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

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());
}