pub struct TrekMetadata {
pub title: String,
pub description: String,
pub domain: String,
pub favicon: String,
pub image: String,
pub parse_time: u64,
pub published: String,
pub author: String,
pub site: String,
pub schema_org_data: Vec<Value>,
pub word_count: usize,
pub mini_app_embed: Option<MiniAppEmbed>,
}Expand description
Metadata extracted from the document
Fields§
§title: StringPage title
description: StringPage description
domain: StringDomain of the page
favicon: StringFavicon URL
image: StringMain image URL
parse_time: u64Parse time in milliseconds
published: StringPublished date
Author name
site: StringSite name
schema_org_data: Vec<Value>Schema.org data
word_count: usizeWord count
mini_app_embed: Option<MiniAppEmbed>Mini App embed data from fc:frame meta tag
Trait Implementations§
Source§impl Clone for TrekMetadata
impl Clone for TrekMetadata
Source§fn clone(&self) -> TrekMetadata
fn clone(&self) -> TrekMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TrekMetadata
impl Debug for TrekMetadata
Source§impl Default for TrekMetadata
impl Default for TrekMetadata
Source§fn default() -> TrekMetadata
fn default() -> TrekMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrekMetadata
impl<'de> Deserialize<'de> for TrekMetadata
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 TrekMetadata
impl RefUnwindSafe for TrekMetadata
impl Send for TrekMetadata
impl Sync for TrekMetadata
impl Unpin for TrekMetadata
impl UnsafeUnpin for TrekMetadata
impl UnwindSafe for TrekMetadata
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