mangadex_api::v5::api_client::id

Module post

Source
Expand description

Builder for editing client by its id.

https://api.mangadex.org/docs/swagger.html#/ApiClient/post-edit-apiclient

§Examples

use mangadex_api::v5::MangaDexClient;
use uuid::Uuid;

let client = MangaDexClient::default();

let client_res = client
    .client()
    .id(Uuid::new_v4())
    .post()
    .description("My API for testing")
    // Normally you don't need this `as u32`
    // but for some reason, it need this to compile :(
    .version(2 as u32)
    .send()
    .await?;

println!("client: {:?}", client_res);

Structs§