mangadex_api::v5::author::id

Module delete

Source
Expand description

Builder for the author delete endpoint.

https://api.mangadex.org/docs/swagger.html#/Author/delete-author-id

§Examples

use uuid::Uuid;

use mangadex_api::v5::MangaDexClient;
use mangadex_api_types::{Password, Username};

let client = MangaDexClient::default();

/*
    Put your logging script here
    let _login_res = client
        .auth()
        .login()
        .post()
        .username(Username::parse("myusername")?)
        .password(Password::parse("hunter23")?)
        .build()?
        .send()
        .await?;
 */


let author_id = Uuid::new_v4();
let res = client
    .author()
    .id(author_id)
    .delete()
    .send()
    .await?;

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

Structs§