pub struct GetMarkdown<C = Client> { /* private fields */ }Expand description
Request builder for Client::get_markdown. Await it for the Markdown.
Implementations§
Source§impl<C> GetMarkdown<C>
impl<C> GetMarkdown<C>
Sourcepub fn main_content_only(self, main_content_only: bool) -> Self
pub fn main_content_only(self, main_content_only: bool) -> Self
Keep only the page’s main content, without navigation, the site
header, footer and sidebars (the API default). false converts the
whole page.
Sourcepub fn proxy_country(self, country: impl Into<String>) -> Self
pub fn proxy_country(self, country: impl Into<String>) -> Self
ISO country code to route the request through, e.g. "us".
Sourcepub fn time_sleep(self, seconds: u32) -> Self
pub fn time_sleep(self, seconds: u32) -> Self
Extra seconds to wait after the page loads, before capture.
Sourcepub fn method(self, method: impl Into<String>) -> Self
pub fn method(self, method: impl Into<String>) -> Self
Advanced render-wait method ("css", "js", …), paired with value.
Sourcepub fn value(self, value: impl Into<String>) -> Self
pub fn value(self, value: impl Into<String>) -> Self
The selector or expression paired with method.
Sourcepub fn method_timeout(self, seconds: u32) -> Self
pub fn method_timeout(self, seconds: u32) -> Self
Cap in seconds for the render-wait method.
Sourcepub fn steps(self, steps: impl IntoIterator<Item = Step>) -> Self
pub fn steps(self, steps: impl IntoIterator<Item = Step>) -> Self
Browser actions to run, in order, after the page loads. See Step.
Source§impl GetMarkdown<Client>
impl GetMarkdown<Client>
Sourcepub fn send(self) -> ResponseFuture<String>
pub fn send(self) -> ResponseFuture<String>
Send the request. The same as awaiting the builder directly.
Trait Implementations§
Source§impl<C: Clone> Clone for GetMarkdown<C>
impl<C: Clone> Clone for GetMarkdown<C>
Source§impl<C: Debug> Debug for GetMarkdown<C>
impl<C: Debug> Debug for GetMarkdown<C>
Source§impl IntoFuture for GetMarkdown<Client>
impl IntoFuture for GetMarkdown<Client>
Source§type IntoFuture = Pin<Box<dyn Future<Output = Result<String, Error>> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = Result<String, Error>> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<C> Forget for GetMarkdown<C>
impl<C> Freeze for GetMarkdown<C>where
C: Freeze,
impl<C> Move for GetMarkdown<C>
impl<C> RefUnwindSafe for GetMarkdown<C>where
C: RefUnwindSafe,
impl<C> Send for GetMarkdown<C>where
C: Send,
impl<C> Sync for GetMarkdown<C>where
C: Sync,
impl<C> Unpin for GetMarkdown<C>where
C: Unpin,
impl<C> UnsafeUnpin for GetMarkdown<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for GetMarkdown<C>where
C: UnwindSafe,
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