mangadex_api::v5::manga::id::list::list_id

Module delete

Source
Expand description

Builder for the removing manga from a custom list endpoint.

https://api.mangadex.org/docs/swagger.html#/Manga/delete-manga-id-list-listId

§Examples

use uuid::Uuid;

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

let client = MangaDexClient::default();

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

let manga_id = Uuid::new_v4();
let list_id = Uuid::new_v4();
let res = client
    .manga()
    .id(manga_id)
    .list()
    .list_id(list_id)
    .delete()
    .send()
    .await?;

println!("remove manga from custom list: {:?}", res);

Structs§