Struct mangadex_api::web_scrape::builder::get_most_popular_manga::GetMostPopularMangaScrapeBuilder[][src]

pub struct GetMostPopularMangaScrapeBuilder<'a> {
    md_client: &'a (dyn MangaDexClient + Send + Sync + 'a),
    page: u32,
    use_cover_thumbnail: bool,
}

Builder for the /titles/7/{page} endpoint.

By default, 50 results are returned on the page.

Fields

md_client: &'a (dyn MangaDexClient + Send + Sync + 'a)page: u32use_cover_thumbnail: bool

Implementations

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

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

Create a new builder instance for fetching the most popular manga.

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 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.