pub struct DocRecord<'a> {
pub url: &'a str,
pub url_key: UrlKey,
pub content_hash: u64,
pub fetched_at_ms: u64,
pub title: Option<&'a str>,
pub snippet: Option<&'a str>,
pub etag: Option<&'a str>,
pub pinned: bool,
}Expand description
A document to upsert — borrowed, produced by the caller or the link-r bridge. Everything here is compact lookup metadata; bodies and vectors are deliberately not representable.
Fields§
§url: &'a strCanonical URL.
url_key: UrlKeyDurable key (xxh3 of url).
content_hash: u64xxh3 of the fetched body.
fetched_at_ms: u64Fetch stamp, epoch ms.
title: Option<&'a str>Title, if extracted.
snippet: Option<&'a str>Distilled snippet (≤ ~180 chars by convention).
etag: Option<&'a str>Entity tag from the fetch, for conditional revalidation.
pinned: boolExempt from eviction sweeps.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DocRecord<'a>
impl<'a> RefUnwindSafe for DocRecord<'a>
impl<'a> Send for DocRecord<'a>
impl<'a> Sync for DocRecord<'a>
impl<'a> Unpin for DocRecord<'a>
impl<'a> UnsafeUnpin for DocRecord<'a>
impl<'a> UnwindSafe for DocRecord<'a>
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