mangadex_api::v5::custom_list::id

Module put

Source
Expand description

Builder for the CustomList update endpoint.

https://api.mangadex.org/docs/swagger.html#/CustomList/put-list-id

§Examples

use uuid::Uuid;

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

let client = MangaDexClient::default();

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

let list_id = Uuid::new_v4();
let res = client
    .custom_list()
    .id(list_id)
    .put()
    .name("Updated List Name")
    .version(2u32)
    .send()
    .await?;

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

Structs§