Expand description
Builder for the create or update Manga rating endpoint.
This endpoint requires authentication.
https://api.mangadex.org/docs/swagger.html#/Rating/post-rating-manga-id
§Examples
// use mangadex_api_types::{Password, Username};
use mangadex_api::v5::MangaDexClient;
use uuid::Uuid;
let client = MangaDexClient::default();
/*
let _login_res = client
.auth()
.login()
.post()
.username(Username::parse("myusername")?)
.password(Password::parse("hunter2")?)
.send()
.await?;
*/
// Official Test Manga ID.
let manga_id = Uuid::parse_str("f9c33607-9180-4ba6-b85c-e4b5faee7192")?;
let res = client
.rating()
.manga_id(manga_id)
.post()
.rating(9)
.send()
.await?;
println!("Response: {:?}", res);
Structs§
- Builder for
CreateUpdateMangaRating
.