mangadex_api::v5::user

Module get

Source
Expand description

Builder for the user list endpoint.

Authentication is required. This can be done by logging in.

https://api.mangadex.org/docs/swagger.html#/User/get-user

§Examples

use mangadex_api_types::MangaStatus;
use mangadex_api::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 users_res = client
    .user()
    .get()
    .username("holo")
    .send()
    .await?;

println!("users: {:?}", users_res);

Structs§