pub struct UploadCoverBuilder {
manga_id: Option<Uuid>,
file: Option<Cow<'static, [u8]>>,
volume: Option<String>,
description: Option<String>,
locale: Option<Language>,
/* private fields */
}
Expand description
Builder for UploadCover
.
Fields§
§manga_id: Option<Uuid>
Manga or Cover ID.
file: Option<Cow<'static, [u8]>>
Image bytes.
volume: Option<String>
Volume number the cover is associated with.
- Nullable
- <= 8 characters
- Pattern:
^(0|[1-9]\\d*)((\\.\\d+){1,2})?[a-z]?$
description: Option<String>
§locale: Option<Language>
Implementations§
Source§impl UploadCoverBuilder
impl UploadCoverBuilder
Sourcepub fn file<VALUE: Into<Cow<'static, [u8]>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn file<VALUE: Into<Cow<'static, [u8]>>>( &mut self, value: VALUE, ) -> &mut Self
Image bytes.
Sourcepub fn volume<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn volume<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Volume number the cover is associated with.
- Nullable
- <= 8 characters
- Pattern:
^(0|[1-9]\\d*)((\\.\\d+){1,2})?[a-z]?$
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn locale<VALUE: Into<Language>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<UploadCover, BuilderError>
pub fn build(&self) -> Result<UploadCover, BuilderError>
Sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Trait Implementations§
Source§impl Clone for UploadCoverBuilder
impl Clone for UploadCoverBuilder
Source§fn clone(&self) -> UploadCoverBuilder
fn clone(&self) -> UploadCoverBuilder
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 moreAuto Trait Implementations§
impl Freeze for UploadCoverBuilder
impl !RefUnwindSafe for UploadCoverBuilder
impl !Send for UploadCoverBuilder
impl !Sync for UploadCoverBuilder
impl Unpin for UploadCoverBuilder
impl !UnwindSafe for UploadCoverBuilder
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