Module mangadex_api::v5::upload::start_edit_chapter_session
source · [−]Expand description
Builder for starting an edit chapter session.
https://api.mangadex.org/swagger.html#/Upload/begin-edit-session
use uuid::Uuid;
use mangadex_api::MangaDexClient;
use mangadex_api::types::{Password, Username};
use mangadex_api::types::Language;
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 res = client
.upload()
.start_edit_chapter_session()
.chapter_id(&chapter_id)
.version(2_u32)
.build()?
.send()
.await?;
println!("edit chapter session start: {:?}", res);
Structs
Start an edit chapter session.
Enums
Error type for StartEditChapterSessionBuilder