mangadex_api::v5::user::list

Module get

Source
Expand description

Builder for fetching the logged-in user’s custom lists.

https://api.mangadex.org/docs/swagger.html#/CustomList/get-user-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()
        .post()
        .username(Username::parse("myusername")?)
        .password(Password::parse("hunter23")?)
        .send()
        .await?;

 */

let res = client
    .user()
    .list()
    .get()
    .limit(1_u32)
    .send()
    .await?;

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

Structs§