pub struct MarkChapterBatchBuilder {
manga_id: Option<Uuid>,
chapter_ids_read: Option<Vec<Uuid>>,
chapter_ids_unread: Option<Vec<Uuid>>,
update_history: Option<bool>,
/* private fields */
}
Expand description
Builder for MarkChapterBatch
.
Fields§
§manga_id: Option<Uuid>
§chapter_ids_read: Option<Vec<Uuid>>
§chapter_ids_unread: Option<Vec<Uuid>>
§update_history: Option<bool>
Implementations§
Source§impl MarkChapterBatchBuilder
impl MarkChapterBatchBuilder
pub fn manga_id<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
pub fn chapter_ids_read<VALUE: Into<Vec<Uuid>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn mark_chapter_read<VALUE>(&mut self, item: VALUE) -> &mut Self
pub fn chapter_ids_unread<VALUE: Into<Vec<Uuid>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn mark_chapter_unread<VALUE>(&mut self, item: VALUE) -> &mut Self
pub fn update_history<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<MarkChapterBatch, BuilderError>
pub fn build(&self) -> Result<MarkChapterBatch, 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 MarkChapterBatchBuilder
impl Clone for MarkChapterBatchBuilder
Source§fn clone(&self) -> MarkChapterBatchBuilder
fn clone(&self) -> MarkChapterBatchBuilder
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 MarkChapterBatchBuilder
impl !RefUnwindSafe for MarkChapterBatchBuilder
impl !Send for MarkChapterBatchBuilder
impl !Sync for MarkChapterBatchBuilder
impl Unpin for MarkChapterBatchBuilder
impl !UnwindSafe for MarkChapterBatchBuilder
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