pub struct UpdateMangaReadingStatusBuilder {
manga_id: Option<Uuid>,
status: Option<Option<ReadingStatus>>,
/* private fields */
}
Expand description
Builder for UpdateMangaReadingStatus
.
Fields§
§manga_id: Option<Uuid>
§status: Option<Option<ReadingStatus>>
Using a None
(null
) value will remove the reading status.
Implementations§
Source§impl UpdateMangaReadingStatusBuilder
impl UpdateMangaReadingStatusBuilder
pub fn manga_id<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn status<VALUE: Into<Option<ReadingStatus>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn status<VALUE: Into<Option<ReadingStatus>>>( &mut self, value: VALUE, ) -> &mut Self
Using a None
(null
) value will remove the reading status.
Sourcepub fn build(&self) -> Result<UpdateMangaReadingStatus, BuilderError>
pub fn build(&self) -> Result<UpdateMangaReadingStatus, 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 UpdateMangaReadingStatusBuilder
impl Clone for UpdateMangaReadingStatusBuilder
Source§fn clone(&self) -> UpdateMangaReadingStatusBuilder
fn clone(&self) -> UpdateMangaReadingStatusBuilder
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 UpdateMangaReadingStatusBuilder
impl !RefUnwindSafe for UpdateMangaReadingStatusBuilder
impl !Send for UpdateMangaReadingStatusBuilder
impl !Sync for UpdateMangaReadingStatusBuilder
impl Unpin for UpdateMangaReadingStatusBuilder
impl !UnwindSafe for UpdateMangaReadingStatusBuilder
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