pub struct GetRandomMangaBuilder {
includes: Option<Vec<ReferenceExpansionResource>>,
content_rating: Option<Vec<ContentRating>>,
included_tags: Option<Vec<Uuid>>,
included_tags_mode: Option<Option<TagSearchMode>>,
excluded_tags: Option<Vec<Uuid>>,
excluded_tags_mode: Option<Option<TagSearchMode>>,
/* private fields */
}
Expand description
Builder for GetRandomManga
.
Fields§
§includes: Option<Vec<ReferenceExpansionResource>>
§content_rating: Option<Vec<ContentRating>>
Ensure the returned Manga is one of the given content ratings.
If this is not set, the default ratings MangaDex will use are: - safe - suggestive - erotica
Implementations§
Source§impl GetRandomMangaBuilder
impl GetRandomMangaBuilder
pub fn includes<VALUE: Into<Vec<ReferenceExpansionResource>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn include<VALUE>(&mut self, item: VALUE) -> &mut Self
Sourcepub fn content_rating<VALUE: Into<Vec<ContentRating>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn content_rating<VALUE: Into<Vec<ContentRating>>>( &mut self, value: VALUE, ) -> &mut Self
Ensure the returned Manga is one of the given content ratings.
If this is not set, the default ratings MangaDex will use are: - safe - suggestive - erotica
Sourcepub fn add_content_rating<VALUE>(&mut self, item: VALUE) -> &mut Self
pub fn add_content_rating<VALUE>(&mut self, item: VALUE) -> &mut Self
Ensure the returned Manga is one of the given content ratings.
If this is not set, the default ratings MangaDex will use are: - safe - suggestive - erotica
pub fn include_tag<VALUE>(&mut self, item: VALUE) -> &mut Self
pub fn exclude_tag<VALUE>(&mut self, item: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<GetRandomManga, BuilderError>
pub fn build(&self) -> Result<GetRandomManga, 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 GetRandomMangaBuilder
impl Clone for GetRandomMangaBuilder
Source§fn clone(&self) -> GetRandomMangaBuilder
fn clone(&self) -> GetRandomMangaBuilder
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 GetRandomMangaBuilder
impl !RefUnwindSafe for GetRandomMangaBuilder
impl !Send for GetRandomMangaBuilder
impl !Sync for GetRandomMangaBuilder
impl Unpin for GetRandomMangaBuilder
impl !UnwindSafe for GetRandomMangaBuilder
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