pub struct GetReadChaptersBuilder {
manga_ids: Option<Vec<Uuid>>,
grouped: Option<bool>,
/* private fields */
}
Expand description
Builder for GetReadChapters
.
Fields§
§manga_ids: Option<Vec<Uuid>>
§grouped: Option<bool>
Group results by manga IDs.
false
(default) will return MangaReadMarkers::Ungrouped
.
true
will return MangaReadMarkers::Grouped
.
Implementations§
Source§impl GetReadChaptersBuilder
impl GetReadChaptersBuilder
pub fn manga_ids<VALUE: Into<Vec<Uuid>>>(&mut self, value: VALUE) -> &mut Self
pub fn add_manga_id<VALUE>(&mut self, item: VALUE) -> &mut Self
Sourcepub fn grouped<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn grouped<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Group results by manga IDs.
false
(default) will return MangaReadMarkers::Ungrouped
.
true
will return MangaReadMarkers::Grouped
.
Sourcepub fn build(&self) -> Result<GetReadChapters, BuilderError>
pub fn build(&self) -> Result<GetReadChapters, BuilderError>
Sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Source§impl GetReadChaptersBuilder
impl GetReadChaptersBuilder
pub async fn send(&self) -> MangaReadMarkersResponse
Trait Implementations§
Source§impl Clone for GetReadChaptersBuilder
impl Clone for GetReadChaptersBuilder
Source§fn clone(&self) -> GetReadChaptersBuilder
fn clone(&self) -> GetReadChaptersBuilder
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 GetReadChaptersBuilder
impl !RefUnwindSafe for GetReadChaptersBuilder
impl !Send for GetReadChaptersBuilder
impl !Sync for GetReadChaptersBuilder
impl Unpin for GetReadChaptersBuilder
impl !UnwindSafe for GetReadChaptersBuilder
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