Struct mangadex_api::web_scrape::builder::GetLatestUpdatesScrapeBuilder [−][src]
Builder for the /updates/{page}
endpoint.
By default, 50 results are returned on the page.
Fields
md_client: &'a (dyn MangaDexClient + Send + Sync + 'a)
page: u32
chapter_languages: Vec<Language>
use_cover_thumbnail: bool
Implementations
impl<'a> GetLatestUpdatesScrapeBuilder<'a>
[src]
pub fn new(
md_client: &'a (dyn MangaDexClient + Send + Sync)
) -> GetLatestUpdatesScrapeBuilder<'a>
[src]
md_client: &'a (dyn MangaDexClient + Send + Sync)
) -> GetLatestUpdatesScrapeBuilder<'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 chapter_languages(
&mut self,
chapter_languages: Vec<Language>
) -> &mut Self
[src]
&mut self,
chapter_languages: Vec<Language>
) -> &mut Self
Filter the chapter languages.
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
impl<'a> !RefUnwindSafe for GetLatestUpdatesScrapeBuilder<'a>
impl<'a> Send for GetLatestUpdatesScrapeBuilder<'a>
impl<'a> Sync for GetLatestUpdatesScrapeBuilder<'a>
impl<'a> Unpin for GetLatestUpdatesScrapeBuilder<'a>
impl<'a> !UnwindSafe for GetLatestUpdatesScrapeBuilder<'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>,