Struct mangadex_api::web_scrape::builder::SearchMangaScrapeBuilder[][src]

pub struct SearchMangaScrapeBuilder<'a> {
    md_client: &'a (dyn MangaDexClient + Send + Sync + 'a),
    page: u32,
    use_cover_thumbnail: bool,
    sort_by: Option<MangaResultsSortBy>,
    title: Option<String>,
    author: Option<String>,
    artist: Option<String>,
    original_language: Language,
    demographic_types: Vec<Demographic>,
    publication_statuses: Vec<PublicationStatus>,
    include_tags: Vec<Tag>,
    tag_inclusion_mode: TagSearchMode,
    exclude_tags: Vec<Tag>,
    tag_exclusion_mode: TagSearchMode,
    hentai_mode: HentaiMode,
}

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: u32use_cover_thumbnail: boolsort_by: Option<MangaResultsSortBy>title: Option<String>author: 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.

include_tags: Vec<Tag>

Tags that the manga must be tagged with.

tag_inclusion_mode: TagSearchModeexclude_tags: Vec<Tag>

Tags that the manga must not be tagged with.

tag_exclusion_mode: TagSearchModehentai_mode: HentaiMode

Implementations

impl<'a> SearchMangaScrapeBuilder<'a>[src]

pub fn new(
    md_client: &'a (dyn MangaDexClient + Send + Sync)
) -> SearchMangaScrapeBuilder<'a>
[src]

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]

Filter the search results by the original publication language.

pub fn demographic_types(
    &mut self,
    demographic_types: Vec<Demographic>
) -> &mut Self
[src]

Filter the search results by demographic types.

pub fn publication_statuses(
    &mut self,
    publication_statuses: Vec<PublicationStatus>
) -> &mut Self
[src]

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]

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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.