mangadex_api::v5::scanlation_group

Module post

Source
Expand description

Builder for the scanlation group creation endpoint.

https://api.mangadex.org/docs/swagger.html#/ScanlationGroup/post-group

§Examples

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 res = client
    .scanlation_group()
    .post()
    .name("My Group Name")
    .description("This is a short description about this group...")
    .send()
    .await?;

println!("scanlation group create: {:?}", res);

Structs§