Expand description

Builder for the edit cover endpoint.

https://api.mangadex.org/swagger.html#/Cover/edit-cover

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 cover_id = Uuid::new_v4();
let res = client
    .cover()
    .edit()
    .cover_id(&cover_id)
    .volume(Some("1"))
    .version(2_u32)
    .build()?
    .send()
    .await?;

println!("edit: {:?}", res);

Structs

Enums

Error type for EditCoverBuilder