Crate mal [] [src]

The purpose of this library is to provide high-level access to the MyAnimeList API. It allows you to search for anime / manga on MyAnimeList, as well as add / update / delete anime from a user's list.

Examples

use mal::{MAL, AnimeInfo};
use mal::list::List;
use mal::list::anime::{AnimeEntry, WatchStatus};
 
// Create a new MAL instance
let mal = MAL::new("username", "password");
 
// Search for "Toradora" on MyAnimeList
let mut search_results = mal.search_anime("Toradora").unwrap();
 
// Use the first result's info
let toradora_info = search_results.swap_remove(0);
 
// Create a new anime list entry with Toradora's info
let mut entry = AnimeEntry::new(toradora_info);
 
// Set the entry's watched episodes to 5 and status to watching
entry.set_watched_episodes(5).set_status(WatchStatus::Watching);
 
// Add the entry to the user's anime list
mal.anime_list().add(&mut entry).unwrap();

Modules

list

Structs

AnimeInfo

Represents basic information of an anime series on MyAnimeList.

MAL

Used to interact with the MyAnimeList API with authorization being handled automatically.

MangaInfo

Represents basic information of a manga series on MyAnimeList.

Traits

SeriesInfo

Represents series information for an anime or manga series.