Module mangadex_api::v5::manga::add_to_custom_list
source · [−]Expand description
Builder for the add manga to custom list endpoint.
https://api.mangadex.org/swagger.html#/Manga/post-manga-id-list-listId
Examples
use uuid::Uuid;
use mangadex_api::v5::MangaDexClient;
use mangadex_api::types::{Password, Username};
let client = MangaDexClient::default();
let _login_res = client
.auth()
.login()
.username(Username::parse("myusername")?)
.password(Password::parse("hunter23")?)
.build()?
.send()
.await?;
let manga_id = Uuid::new_v4();
let list_id = Uuid::new_v4();
let res = client
.manga()
.add_to_custom_list()
.manga_id(&manga_id)
.list_id(&list_id)
.build()?
.send()
.await?;
println!("add manga to custom list: {:?}", res);
Structs
Enums
Error type for AddMangaToCustomListBuilder