Expand description

Builder for the delete Manga rating endpoint.

This endpoint requires authentication.

https://api.mangadex.org/swagger.html#/Rating/delete-rating-manga-id

Examples

use uuid::Uuid;

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

let client = MangaDexClient::default();

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

// Official Test Manga ID.
let manga_id = Uuid::parse_str("f9c33607-9180-4ba6-b85c-e4b5faee7192")?;

let res = client
    .rating()
    .upsert_for_manga()
    .manga_id(&manga_id)
    .rating(9)
    .build()?
    .send()
    .await?;

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

Structs

Enums

Error type for DeleteMangaRatingBuilder