mangadex_api::v5::user::me

Module get

Source
Expand description

Builder for the logged-in user details endpoint.

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

§Examples

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

let client = MangaDexClient::default();

/*

    let _login_res = client
        .auth()
        .login()
        .get()
        .username(Username::parse("myusername")?)
        .password(Password::parse("hunter23")?)
        .send()
        .await?;
 */


let res = client
    .user()
    .me()
    .get()
    .send()
    .await?;

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

Structs§