Expand description
Mark multiple chapters for one manga as read and/or unread.
https://api.mangadex.org/docs/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();
/*
// Put your login script here
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
.manga()
.id(manga_id)
.read()
.post()
.mark_chapter_read(read_chapter_id)
.mark_chapter_unread(unread_chapter_id)
.send()
.await?;
println!("response: {:?}", res);
Structs§
- Mark multiple manga chapters as read and/or unread for the current user.
- Builder for
MarkChapterBatch
.