You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Adrian Malacoda 6c3d1da78e make fields public 1 year ago
src make fields public 1 year ago
Cargo.toml implement cat api 1 year ago
README.md implement cat api 1 year ago

README.md

I Can Has Cat

The Cat API client in Rust.

Usage

Command Line

  • cargo run: output list of categories
  • cargo run random: output random cat
  • cargo run random <category> output random cat of category

Library

use i_can_has_cat::Cats;
let cats = Cats::new();
let categories = cats.categories();
let random_cat = cats.random_image();
let random_cat_of_breed = cats.random_image_of_category("<category>");