Expand description

Builder for checking if a given manga / locale for a User needs moderation approval.

https://api.mangadex.org/docs/swagger.html#/Upload/upload-check-approval-required

use uuid::Uuid;

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

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 res = client
    .upload()
    .check_approval_required()
    .post()
    .manga_id(manga_id)
    .locale(Language::English)
    .send()
    .await?;

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

Structsยง