Expand description

Builder for the CustomList creation endpoint.

https://api.mangadex.org/swagger.html#/CustomList/post-list

Examples

use uuid::Uuid;

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 res = client
    .custom_list()
    .create()
    .name("My Custom List")
    .add_manga_id(manga_id)
    .version(1_u32)
    .build()?
    .send()
    .await?;

println!("custom list create: {:?}", res);

Structs

Enums

Error type for CreateCustomListBuilder