pub struct WebPage {
pub id: String,
pub url: String,
pub title: String,
pub content: String,
pub snippet: String,
pub domain: String,
pub indexed_at: DateTime<Utc>,
pub last_crawled: DateTime<Utc>,
pub status_code: u16,
pub content_type: Option<String>,
pub content_length: Option<usize>,
}
Expand description
Represents a web page document stored in the database.
Contains all metadata and content for an indexed web page.
Fields§
§id: String
Unique identifier for the web page
url: String
Original URL of the web page
title: String
Title extracted from the page
content: String
Full text content of the page
snippet: String
Brief excerpt for search results
domain: String
Domain name the page belongs to
indexed_at: DateTime<Utc>
Timestamp when the page was indexed
last_crawled: DateTime<Utc>
Timestamp of the last crawl attempt
status_code: u16
HTTP status code from the last crawl
content_type: Option<String>
Content-Type header from the response
content_length: Option<usize>
Size of the content in bytes
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WebPage
impl<'de> Deserialize<'de> for WebPage
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 WebPage
impl RefUnwindSafe for WebPage
impl Send for WebPage
impl Sync for WebPage
impl Unpin for WebPage
impl UnwindSafe for WebPage
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