pub struct PageRecord {Show 19 fields
pub url: Url,
pub url_hash: u64,
pub status: u16,
pub redirect_chain: Vec<(u16, Url)>,
pub response_ms: u32,
pub size_bytes: u64,
pub content_type: Option<String>,
pub depth: Option<u16>,
pub in_sitemap: bool,
pub indexability: Indexability,
pub fields: PageFields,
pub inlinks: u32,
pub outlinks_internal: u32,
pub outlinks_external: u32,
pub issues: IssueBits,
pub key_hash: u64,
pub redirect_target: Option<Url>,
pub outlinks_nofollow: u32,
pub error: Option<FetchFailure>,
}Fields§
§url: Url§url_hash: u64§status: u16§redirect_chain: Vec<(u16, Url)>Every redirect hop in order: the status returned and the URL that returned it.
response_ms: u32§size_bytes: u64§content_type: Option<String>§depth: Option<u16>Clicks from the homepage; None for pages only found in sitemaps.
in_sitemap: bool§indexability: Indexability§fields: PageFields§inlinks: u32§outlinks_internal: u32§outlinks_external: u32§issues: IssueBits§key_hash: u64Hash of the fields change detection compares.
redirect_target: Option<Url>Where a redirecting URL ends up.
outlinks_nofollow: u32Internal links on the page marked rel=nofollow.
error: Option<FetchFailure>Set when there was no response (status is 0).
Implementations§
Source§impl PageRecord
impl PageRecord
Sourcepub fn compute_key_hash(&self) -> u64
pub fn compute_key_hash(&self) -> u64
Hash of the fields change detection compares: status, title, description, first H1, canonical, both robots directives, indexability, redirect target and sitemap membership. Timings and counts are left out so they don’t read as changes.
Sourcepub fn is_html_ok(&self) -> bool
pub fn is_html_ok(&self) -> bool
A successful response that can be read as an HTML page.
Trait Implementations§
Source§impl Clone for PageRecord
impl Clone for PageRecord
Source§impl Debug for PageRecord
impl Debug for PageRecord
Source§impl<'de> Deserialize<'de> for PageRecord
impl<'de> Deserialize<'de> for PageRecord
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
impl Eq for PageRecord
Source§impl PartialEq for PageRecord
impl PartialEq for PageRecord
Source§impl Serialize for PageRecord
impl Serialize for PageRecord
impl StructuralPartialEq for PageRecord
Auto Trait Implementations§
impl Freeze for PageRecord
impl RefUnwindSafe for PageRecord
impl Send for PageRecord
impl Sync for PageRecord
impl Unpin for PageRecord
impl UnsafeUnpin for PageRecord
impl UnwindSafe for PageRecord
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