Module mangadex_api::v5::upload::delete_image
source · [−]Expand description
Builder for deleting an uploaded image from an upload session.
https://api.mangadex.org/swagger.html#/Upload/delete-uploaded-session-file
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()
.username(Username::parse("myusername")?)
.password(Password::parse("hunter23")?)
.build()?
.send()
.await?;
let session_id = Uuid::new_v4();
let session_file_id = Uuid::new_v4();
let res = client
.upload()
.delete_image()
.session_id(&session_id)
.session_file_id(&session_file_id)
.build()?
.send()
.await?;
println!("delete image: {:?}", res);
Structs
Builder for DeleteImage
.
Enums
Error type for DeleteImageBuilder