Module mangadex_api::v5::upload::start_session
source · [−]Expand description
Builder for starting an upload session.
https://api.mangadex.org/swagger.html#/Upload/begin-upload-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 group_id = Uuid::new_v4();
let manga_id = Uuid::new_v4();
let res = client
.upload()
.start_session()
.add_group_id(&group_id)
.manga_id(&manga_id)
.build()?
.send()
.await?;
println!("session start: {:?}", res);
Structs
Start an upload session.
Builder for StartUploadSession
.
Enums
Error type for StartUploadSessionBuilder