mangadex_api::v5::statistics::chapter::id

Module get

Source
Expand description

Builder for getting a given chapter’s statistics.

https://api.mangadex.org/docs/swagger.html#/Statistics/get-statistics-chapter-uuid

This only gets statistics for a single Manga.

§Examples

use mangadex_api_types::MangaStatus;
use mangadex_api::v5::MangaDexClient;
use uuid::Uuid;

let client = MangaDexClient::default();

// Cool Tsuma no Saa-chan chapter 25
let chapter_id = Uuid::parse_str("1c3a8585-8df6-46d1-af98-fa777666abf2")?;

let chapter_stats = client
    .statistics()
    .chapter()
    .id(chapter_id)
    .get()
    .send()
    .await?;

println!("Response: {:?}", chapter_stats);

Structs§