Expand description
Builder for the chapter update endpoint.
https://api.mangadex.org/swagger.html#/Chapter/put-chapter-id
§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()
.post()
.username(Username::parse("myusername")?)
.password(Password::parse("hunter23")?)
.send()
.await?;
*/
let chapter_id = Uuid::new_v4();
let res = client
.chapter()
.id(chapter_id)
.put()
.title("Updated Chapter Title")
.version(2u32)
.send()
.await?;
println!("update: {:?}", res);
Structs§
- Builder for
UpdateChapter
.