mangadex_api::v5::manga::manga_id::relation::id

Module delete

Source
Expand description

Builder for deleting a Manga relation.

This endpoint requires authentication.

This removes the relationship between Manga.

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

§Examples

use uuid::Uuid;

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

let client = MangaDexClient::default();
/*

    let _login_res = client
        .auth()
        .login()
        .post()
        .username(Username::parse("myusername")?)
        .password(Password::parse("hunter23")?)
        .send()
        .await?;

 */


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

println!("deleted manga relation: {:?}", res);

Structs§