pub struct SearchDocument {
pub id: String,
pub title: String,
pub url: String,
pub content: String,
pub snippet: String,
pub domain: String,
pub indexed_at: DateTime<Utc>,
pub last_crawled: DateTime<Utc>,
}
Expand description
Represents a document in the Azure Cognitive Search index.
This structure defines the schema for documents stored in the search index.
Fields§
§id: String
Unique identifier for the document
title: String
Title of the document
url: String
Original URL of the document
content: String
Full text content for search indexing
snippet: String
Brief excerpt for display in search results
domain: String
Domain name the document belongs to
indexed_at: DateTime<Utc>
Timestamp when the document was indexed
last_crawled: DateTime<Utc>
Timestamp of the last crawl
Trait Implementations§
Source§impl Clone for SearchDocument
impl Clone for SearchDocument
Source§fn clone(&self) -> SearchDocument
fn clone(&self) -> SearchDocument
Returns a copy 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 moreSource§impl Debug for SearchDocument
impl Debug for SearchDocument
Source§impl<'de> Deserialize<'de> for SearchDocument
impl<'de> Deserialize<'de> for SearchDocument
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 SearchDocument
impl RefUnwindSafe for SearchDocument
impl Send for SearchDocument
impl Sync for SearchDocument
impl Unpin for SearchDocument
impl UnwindSafe for SearchDocument
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