mangadex_api::v5::api_client::id

Module delete

Source
Expand description

Builder for the delete manga endpoint.

https://api.mangadex.org/docs/redoc.html#tag/ApiClient/operation/delete-apiclient

§Examples

use uuid::Uuid;

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

let client = MangaDexClient::default();

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


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

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

Structs§