pub struct DocumentMetadata {
pub id: String,
pub title: Option<String>,
pub source: String,
pub source_id: String,
pub source_url: Option<String>,
pub updated_at: i64,
}Expand description
Lightweight document metadata for search result enrichment.
Contains only the fields needed to build a SearchResultItem,
avoiding the cost of fetching the full document body.
Fields§
§id: String§title: Option<String>§source: String§source_id: String§source_url: Option<String>§updated_at: i64Trait Implementations§
Source§impl Clone for DocumentMetadata
impl Clone for DocumentMetadata
Source§fn clone(&self) -> DocumentMetadata
fn clone(&self) -> DocumentMetadata
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 moreAuto Trait Implementations§
impl Freeze for DocumentMetadata
impl RefUnwindSafe for DocumentMetadata
impl Send for DocumentMetadata
impl Sync for DocumentMetadata
impl Unpin for DocumentMetadata
impl UnwindSafe for DocumentMetadata
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