Module mangadex_api::v5::chapter::mark_unread
source · [−]Expand description
Builder for the chapter mark unread endpoint.
https://api.mangadex.org/swagger.html#/Chapter/chapter-id-unread
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 chapter_id = Uuid::new_v4();
let chapter_unread_res = client
.chapter()
.mark_unread()
.chapter_id(&chapter_id)
.build()?
.send()
.await?;
println!("chapter unread: {:?}", chapter_unread_res);
Structs
Mark a chapter as unread for the current user.
Builder for MarkChapterUnread
.
Enums
Error type for MarkChapterUnreadBuilder