pub struct UploadCover {
pub manga_id: Uuid,
pub file: Cow<'static, [u8]>,
pub volume: String,
pub description: String,
pub locale: Language,
/* private fields */
}
Expand description
Upload a new cover for a manga.
This requires authentication.
Makes a request to POST /cover/{id}
.
Fields§
§manga_id: Uuid
Manga or Cover ID.
file: Cow<'static, [u8]>
Image bytes.
volume: String
Volume number the cover is associated with.
- Nullable
- <= 8 characters
- Pattern:
^(0|[1-9]\\d*)((\\.\\d+){1,2})?[a-z]?$
description: String
§locale: Language
Implementations§
Trait Implementations§
Source§impl Clone for UploadCover
impl Clone for UploadCover
Source§fn clone(&self) -> UploadCover
fn clone(&self) -> UploadCover
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 UploadCover
impl Debug for UploadCover
Source§impl Default for UploadCover
impl Default for UploadCover
Source§fn default() -> UploadCover
fn default() -> UploadCover
Returns the “default value” for a type. Read more
Source§impl Endpoint for UploadCover
impl Endpoint for UploadCover
type Query = ()
type Body = ()
type Response = ApiData<ApiObject<CoverAttributes>>
fn path(&self) -> Cow<'_, str>
fn method(&self) -> Method
fn require_auth(&self) -> bool
fn multipart(&self) -> Option<Form>
fn query(&self) -> Option<&Self::Query>
fn body(&self) -> Option<&Self::Body>
Auto Trait Implementations§
impl Freeze for UploadCover
impl !RefUnwindSafe for UploadCover
impl !Send for UploadCover
impl !Sync for UploadCover
impl Unpin for UploadCover
impl !UnwindSafe for UploadCover
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