Struct mangadex_api::web_scrape::builder::search_manga::SearchMangaScrapeBuilder [−][src]
Search for manga titles that match the query.
Note: Search is disabled for guests. Users must be logged in to use this feature.
Fields
md_client: &'a (dyn MangaDexClient + Send + Sync + 'a)
page: u32
use_cover_thumbnail: bool
sort_by: Option<MangaResultsSortBy>
title: Option<String>
artist: Option<String>
original_language: Language
Original publication language.
demographic_types: Vec<Demographic>
Empty denotes all demographics.
publication_statuses: Vec<PublicationStatus>
Empty denotes all statuses.
Tags that the manga must be tagged with.
tag_inclusion_mode: TagSearchMode
Tags that the manga must not be tagged with.
tag_exclusion_mode: TagSearchMode
hentai_mode: HentaiMode
Implementations
impl<'a> SearchMangaScrapeBuilder<'a>
[src]
pub fn new(
md_client: &'a (dyn MangaDexClient + Send + Sync)
) -> SearchMangaScrapeBuilder<'a>
[src]
md_client: &'a (dyn MangaDexClient + Send + Sync)
) -> SearchMangaScrapeBuilder<'a>
Create a new builder instance for fetching the latest chapter updates.
pub fn page(&mut self, page: u32) -> &mut Self
[src]
Set the page to fetch.
pub fn use_cover_thumbnail(&mut self, use_cover_thumbnail: bool) -> &mut Self
[src]
Choose to use the thumbnail version of the cover image.
If false, it will use the full-resolution image.
pub fn sort_by<T: Into<MangaResultsSortBy>>(&mut self, sort_by: T) -> &mut Self
[src]
Order the results by the specified field.
pub fn title<T: Into<String>>(&mut self, title: T) -> &mut Self
[src]
Look for the specified manga title.
pub fn author<T: Into<String>>(&mut self, author: T) -> &mut Self
[src]
Filter the search results by the author.
pub fn artist<T: Into<String>>(&mut self, artist: T) -> &mut Self
[src]
Filter the search results by the artist.
pub fn original_language<T: Into<Language>>(
&mut self,
original_language: T
) -> &mut Self
[src]
&mut self,
original_language: T
) -> &mut Self
Filter the search results by the original publication language.
pub fn demographic_types(
&mut self,
demographic_types: Vec<Demographic>
) -> &mut Self
[src]
&mut self,
demographic_types: Vec<Demographic>
) -> &mut Self
Filter the search results by demographic types.
pub fn publication_statuses(
&mut self,
publication_statuses: Vec<PublicationStatus>
) -> &mut Self
[src]
&mut self,
publication_statuses: Vec<PublicationStatus>
) -> &mut Self
Filter the results by publication statuses.
pub fn include_tags(&mut self, include_tags: Vec<Tag>) -> &mut Self
[src]
Filter the results so that they contain the tags.
pub fn tag_inclusion_mode(
&mut self,
tag_inclusion_mode: TagSearchMode
) -> &mut Self
[src]
&mut self,
tag_inclusion_mode: TagSearchMode
) -> &mut Self
Set the mode for searching the tags to include.
“all (and)” returns results that match all the tags. “any (or)” returns results that match any of the tags.
pub fn exclude_tags(&mut self, exclude_tags: Vec<Tag>) -> &mut Self
[src]
Filter the results so that they don’t contain the tags.
pub fn hentai_mode(&mut self, hentai_mode: HentaiMode) -> &mut Self
[src]
Filter the results to include/exclude hentai titles.
pub fn tag_exclusion_mode(
&mut self,
tag_exclusion_mode: TagSearchMode
) -> &mut Self
[src]
&mut self,
tag_exclusion_mode: TagSearchMode
) -> &mut Self
Set the mode for searching the tags to exclude.
“all (and)” returns results that match all the tags. “any (or)” returns results that match any of the tags.
pub async fn send(&self) -> Result<Vec<MangaScrapeInfo>, Error>
[src]
Send the request to MangaDex.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for SearchMangaScrapeBuilder<'a>
impl<'a> Send for SearchMangaScrapeBuilder<'a>
impl<'a> Sync for SearchMangaScrapeBuilder<'a>
impl<'a> Unpin for SearchMangaScrapeBuilder<'a>
impl<'a> !UnwindSafe for SearchMangaScrapeBuilder<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,