mangadex_api::v5::legacy::mapping

Module post

Source
Expand description

Builder for the legacy ID mapping endpoint.

https://api.mangadex.org/swagger.html#/Legacy/post-legacy-mapping

§Examples

use mangadex_api::v5::MangaDexClient;
use mangadex_api_types::LegacyMappingType;

let client = MangaDexClient::default();

let id_mappings_res = client
    .legacy()
    .mapping()
    .post()
    .map_type(LegacyMappingType::Manga)
    .ids(vec![1, 2])
    .send()
    .await?;

println!("ID mappings: {:?}", id_mappings_res);

Structs§