Module mangadex_api::v5::chapter::mark_batch
source · [−]Expand description
Mark multiple chapters for one manga as read and/or unread.
https://api.mangadex.org/swagger.html#/Chapter/post-manga-chapter-readmarkers
Examples
use uuid::Uuid;
use mangadex_api::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 read_chapter_id = Uuid::new_v4();
let unread_chapter_id = Uuid::new_v4();
let res = client
.chapter()
.mark_batch()
.manga_id(&manga_id)
.mark_chapter_read(&read_chapter_id)
.mark_chapter_unread(&unread_chapter_id)
.build()?
.send()
.await?;
println!("response: {:?}", res);
Structs
Mark multiple manga chapters as read and/or unread for the current user.
Builder for MarkChapterBatch
.
Enums
Error type for MarkChapterBatchBuilder