Expand description

Builder for updating a user email endpoint.

https://api.mangadex.org/swagger.html#/User/post-user-email

Examples

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 res = client
    .user()
    .update_email()
    .email("test@example.com")
    .build()?
    .send()
    .await?;

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

Structs

Update a user’s email.

Enums

Error type for UpdateUserEmailBuilder