pub struct NodeRef<'s> {Show 14 fields
pub key: UrlKey,
pub id: Option<NodeId>,
pub url: &'s str,
pub title: Option<&'s str>,
pub snippet: Option<&'s str>,
pub etag: Option<&'s str>,
pub content_hash: u64,
pub fetched_at_ms: u64,
pub last_change_ms: u64,
pub interval_s: u32,
pub checks: u16,
pub changes: u16,
pub flags: u16,
pub rank_permille: u16,
}Expand description
A document node resolved through a snapshot. All strings are borrowed.
Fields§
§key: UrlKeyDurable key.
id: Option<NodeId>Dense id in the current base generation; None for nodes that only
exist in the overlay (committed after the last compaction).
url: &'s strCanonical URL (“” for stubs).
title: Option<&'s str>Title, if known.
snippet: Option<&'s str>Distilled snippet, if known.
etag: Option<&'s str>Last seen entity tag, if any (needed for conditional revalidation).
content_hash: u64xxh3 of the last-seen body.
fetched_at_ms: u64Last successful fetch/revalidation stamp.
last_change_ms: u64Last observed content change stamp.
interval_s: u32Current adaptive revalidation interval, seconds.
checks: u16Revalidations observed (saturating).
changes: u16Content changes observed (saturating).
flags: u16Node flags (format::base::nflags).
rank_permille: u16Rank percentile in permille (0 for overlay-fresh nodes).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for NodeRef<'s>
impl<'s> RefUnwindSafe for NodeRef<'s>
impl<'s> Send for NodeRef<'s>
impl<'s> Sync for NodeRef<'s>
impl<'s> Unpin for NodeRef<'s>
impl<'s> UnsafeUnpin for NodeRef<'s>
impl<'s> UnwindSafe for NodeRef<'s>
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