Module mangadex_api::v5::manga::delete_relation
source · [−]Expand description
Builder for deleting a Manga relation.
This endpoint requires authentication.
This removes the relationship between Manga.
https://api.mangadex.org/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()
.username(Username::parse("myusername")?)
.password(Password::parse("hunter23")?)
.build()?
.send()
.await?;
let manga_id = Uuid::new_v4();
let target_manga_id = Uuid::new_v4();
let res = client
.manga()
.delete_relation()
.manga_id(&manga_id)
.relation_id(&target_manga_id)
.build()?
.send()
.await?;
println!("deleted manga relation: {:?}", res);
Structs
Enums
Error type for DeleteMangaRelationBuilder