Expand description
Builder for the create manga endpoint.
https://api.mangadex.org/swagger.html#/Manga/post-manga
use std::collections::HashMap;
use mangadex_api::MangaDexClient;
use mangadex_api::types::{Password, Username};
use mangadex_api::types::Language;
let client = MangaDexClient::default();
let _login_res = client
.auth()
.login()
.username(Username::parse("myusername")?)
.password(Password::parse("hunter23")?)
.build()?
.send()
.await?;
let manga_res = client
.manga()
.create()
.add_title((Language::English, "My New Manga Title".to_string()))
.build()?
.send()
.await?;
println!("Manga creation: {:?}", manga_res);
Structs
Create a new manga.
Builder for CreateManga
.
Enums
Error type for CreateMangaBuilder