Function subspedia_rs::search_by_id [−][src]
pub fn search_by_id(id: usize) -> Result<Serie, FetchError>
Search the series based on a given id
Errors
Returns error if something gone wrong during http requests, parsing json or if a series with that id isn't found
Exemple
extern crate subspedia; use subspedia::{FetchError, search_by_id}; fn main() -> Result<(), FetchError> { println!("{:#?}", search_by_id(500)?); Ok(()) }