Module mangadex_api::v5::manga::list_drafts
source · [−]Expand description
Builder for getting a list of Manga Drafts.
This endpoint requires authentication.
https://api.mangadex.org/swagger.html#/Manga/get-manga-drafts
Examples
use mangadex_api::types::{MangaState, MangaStatus};
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_res = client
.manga()
.search_drafts()
.state(&MangaState::Draft)
.build()?
.send()
.await?;
println!("manga: {:?}", manga_res);
Structs
Builder for ListMangaDrafts
.
Enums
Error type for ListMangaDraftsBuilder