mangadex_api::v5::report::reasons::category

Module get

Source
Expand description

Builder for the report reasons list endpoint.

https://api.mangadex.org/docs/swagger.html#/Report/get-report-reasons-by-category

§Examples

use mangadex_api_types::ReportCategory;
use mangadex_api::v5::MangaDexClient;

let client = MangaDexClient::default();

// Known issue: Despite the MangaDex API documents stating that authorization is required,
// this endpoint is available to guests.

let res = client
    .report()
    .reasons()
    .category(ReportCategory::Manga)
    .get()
    .send()
    .await?;

println!("report reasons: {:?}", res);

Structs§