pub struct ParseResult {
pub canonical_url: Option<String>,
pub content: String,
pub content_hash: String,
pub description: String,
pub links: HashSet<String>,
pub meta: HashMap<String, String>,
pub title: Option<String>,
}
Fields§
§canonical_url: Option<String>
Index should use this URL instead of the one that lead to the content.
content: String
Text content from page after stripping HTML tags & any semantically unimportant sections (header/footer/etc.)
content_hash: String
Used to determine whether document content has changed.
description: String
Page description, extracted from meta tags or summarized from the actual content
links: HashSet<String>
Links found in the page.
meta: HashMap<String, String>
Meta (OpenGraph, etc) tags associated w/ this content.
title: Option<String>
Title of the page, document, etc.
Implementations§
Source§impl ParseResult
impl ParseResult
pub fn builder() -> ParseResultBuilder
pub fn iter_from_gz(file: &Path) -> Result<ParseResultGzIterator>
Trait Implementations§
Source§impl Clone for ParseResult
impl Clone for ParseResult
Source§fn clone(&self) -> ParseResult
fn clone(&self) -> ParseResult
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParseResult
impl Debug for ParseResult
Source§impl Default for ParseResult
impl Default for ParseResult
Source§fn default() -> ParseResult
fn default() -> ParseResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParseResult
impl<'de> Deserialize<'de> for ParseResult
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
Auto Trait Implementations§
impl Freeze for ParseResult
impl RefUnwindSafe for ParseResult
impl Send for ParseResult
impl Sync for ParseResult
impl Unpin for ParseResult
impl UnwindSafe for ParseResult
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