Module mangadex_api::v5::user::update_password
source · [−]Expand description
Builder for updating a user password endpoint.
https://api.mangadex.org/swagger.html#/User/post-user-password
Examples
use mangadex_api::types::{Password, Username};
use mangadex_api::v5::MangaDexClient;
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_password()
.old_password(&Password::parse("hunter23")?)
.new_password(&Password::parse("32retnuh")?)
.build()?
.send()
.await?;
println!("update password: {:?}", res);
Structs
Update a user password.
Builder for UpdateUserPassword
.
Enums
Error type for UpdateUserPasswordBuilder