Expand description
Builder for the Forum Thread creation endpoint.
https://api.mangadex.org/docs/swagger.html#/Forums/forums-thread-create
§Examples
use uuid::Uuid;
use mangadex_api::v5::MangaDexClient;
use mangadex_api_types::ForumThreadType;
// use mangadex_api_types::{Password, Username};
let client = MangaDexClient::default();
/*
let _login_res = client
.auth()
.login()
.username(Username::parse("myusername")?)
.password(Password::parse("hunter23")?)
.send()
.await?;
*/
let manga_id = Uuid::new_v4();
let res = client
.forums()
.thread()
.post()
.id(manga_id)
.type_(ForumThreadType::Manga)
.send()
.await?;
println!("custom list create: {:?}", res);
Structs§
- Builder for
CreateForumThread
.