pub enum ScrapeFormats {
Markdown,
HTML,
RawHTML,
Links,
Screenshot,
ScreenshotFullPage,
Extract,
}Variants§
Markdown
Will result in a copy of the Markdown content of the page.
HTML
Will result in a copy of the filtered, content-only HTML of the page.
RawHTML
Will result in a copy of the raw HTML of the page.
Links
Will result in a Vec of URLs found on the page.
Screenshot
Will result in a URL to a screenshot of the page.
Can not be used in conjunction with ScrapeFormats::ScreenshotFullPage.
ScreenshotFullPage
Will result in a URL to a full-page screenshot of the page.
Can not be used in conjunction with ScrapeFormats::Screenshot.
Extract
Will result in the results of an LLM extraction.
See ScrapeOptions.extract for more options.
Trait Implementations§
Source§impl Clone for ScrapeFormats
impl Clone for ScrapeFormats
Source§fn clone(&self) -> ScrapeFormats
fn clone(&self) -> ScrapeFormats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScrapeFormats
impl Debug for ScrapeFormats
Source§impl<'de> Deserialize<'de> for ScrapeFormats
impl<'de> Deserialize<'de> for ScrapeFormats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CrawlScrapeFormats> for ScrapeFormats
impl From<CrawlScrapeFormats> for ScrapeFormats
Source§fn from(value: CrawlScrapeFormats) -> Self
fn from(value: CrawlScrapeFormats) -> Self
Converts to this type from the input type.
Source§impl Serialize for ScrapeFormats
impl Serialize for ScrapeFormats
impl Copy for ScrapeFormats
Auto Trait Implementations§
impl Freeze for ScrapeFormats
impl RefUnwindSafe for ScrapeFormats
impl Send for ScrapeFormats
impl Sync for ScrapeFormats
impl Unpin for ScrapeFormats
impl UnwindSafe for ScrapeFormats
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