mangadex_api::v5::settings

Module get

Source
Expand description

Builder for getting a user’s Settings.

https://api.mangadex.org/docs/swagger.html#/Settings/get-settings

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 res = client
    .settings()
    .get()
    .send()
    .await?;

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

Structs§