Crates.io | rick-and-morty |
lib.rs | rick-and-morty |
version | 0.1.0 |
source | src |
created_at | 2020-12-16 07:36:05.187302 |
updated_at | 2020-12-16 07:36:05.187302 |
description | A rust wrapper for rickandmortyapi.com |
homepage | https://github.com/dshomoye/rick-and-morty |
repository | https://github.com/dshomoye/rick-and-morty |
max_upload_size | |
id | 323507 |
size | 69,128 |
This is a rust crate for working with the rick and morty api here. Primarily a learning (rust) experience for me. Contributions welcome!
extern crate rick_and_morty as rm;
async fn get_character() -> () {
let c = rm::character::get(1).await;
match c {
Ok(res) => println!("{:?}", res),
Err(e) => println!("{:?}", e),
}
}
extern crate rick_and_morty as rm;
async fn get_characters() -> () {
let c = rm::character::get_all().await;
match c {
Ok(res) => println!("{:?}", res),
Err(e) => println!("{:?}", e),
}
}
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.