pub struct UpdateChapterBuilder {
chapter_id: Option<Uuid>,
title: Option<Option<String>>,
volume: Option<Option<String>>,
chapter: Option<Option<Option<String>>>,
translated_language: Option<Option<Language>>,
groups: Option<Option<Vec<Uuid>>>,
version: Option<u32>,
/* private fields */
}
Expand description
Builder for UpdateChapter
.
Fields§
§chapter_id: Option<Uuid>
§title: Option<Option<String>>
<= 255 characters in length.
Nullable.
volume: Option<Option<String>>
Volume number.
Nullable.
chapter: Option<Option<Option<String>>>
Chapter number.
<= 8 characters in length.
Nullable.
translated_language: Option<Option<Language>>
§groups: Option<Option<Vec<Uuid>>>
§version: Option<u32>
= 1
Implementations§
Source§impl UpdateChapterBuilder
impl UpdateChapterBuilder
pub fn chapter_id<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
<= 255 characters in length.
Nullable.
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.
Nullable.
Sourcepub fn chapter<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn chapter<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Chapter number.
<= 8 characters in length.
Nullable.
pub fn translated_language<VALUE: Into<Language>>( &mut self, value: VALUE, ) -> &mut Self
pub fn groups<VALUE: Into<Vec<Uuid>>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<UpdateChapter, BuilderError>
pub fn build(&self) -> Result<UpdateChapter, BuilderError>
Sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Source§impl UpdateChapterBuilder
impl UpdateChapterBuilder
pub async fn send(&self) -> Result<Limited<ChapterData>>
Trait Implementations§
Source§impl Clone for UpdateChapterBuilder
impl Clone for UpdateChapterBuilder
Source§fn clone(&self) -> UpdateChapterBuilder
fn clone(&self) -> UpdateChapterBuilder
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 UpdateChapterBuilder
impl !RefUnwindSafe for UpdateChapterBuilder
impl !Send for UpdateChapterBuilder
impl !Sync for UpdateChapterBuilder
impl Unpin for UpdateChapterBuilder
impl !UnwindSafe for UpdateChapterBuilder
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