pub struct CreateManga {Show 17 fields
pub title: LocalizedString,
pub alt_titles: Option<Vec<LocalizedString>>,
pub description: Option<LocalizedString>,
pub authors: Option<Vec<Uuid>>,
pub artists: Option<Vec<Uuid>>,
pub links: Option<MangaLinks>,
pub original_language: Language,
pub last_volume: Option<String>,
pub last_chapter: Option<String>,
pub publication_demographic: Option<Option<Demographic>>,
pub status: MangaStatus,
pub year: Option<Option<u16>>,
pub content_rating: ContentRating,
pub chapter_numbers_reset_on_new_volume: Option<bool>,
pub tags: Option<Vec<Uuid>>,
pub primary_cover: Option<Option<Uuid>>,
pub version: u32,
/* private fields */
}
Expand description
Create a new manga.
This requires authentication.
Makes a request to POST /manga
.
Fields§
§title: LocalizedString
§alt_titles: Option<Vec<LocalizedString>>
§description: Option<LocalizedString>
§artists: Option<Vec<Uuid>>
§links: Option<MangaLinks>
§original_language: Language
§last_volume: Option<String>
§last_chapter: Option<String>
§publication_demographic: Option<Option<Demographic>>
§status: MangaStatus
§year: Option<Option<u16>>
Year the manga was released.
content_rating: ContentRating
§chapter_numbers_reset_on_new_volume: Option<bool>
§primary_cover: Option<Option<Uuid>>
Cover ID.
version: u32
= 1
Implementations§
Trait Implementations§
Source§impl Clone for CreateManga
impl Clone for CreateManga
Source§fn clone(&self) -> CreateManga
fn clone(&self) -> CreateManga
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateManga
impl Debug for CreateManga
Source§impl Default for CreateManga
impl Default for CreateManga
Source§fn default() -> CreateManga
fn default() -> CreateManga
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateManga
impl !RefUnwindSafe for CreateManga
impl !Send for CreateManga
impl !Sync for CreateManga
impl Unpin for CreateManga
impl !UnwindSafe for CreateManga
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more