pub struct LinkMetadata {
pub author: Option<String>,
pub published_at: Option<DateTime<Utc>>,
pub word_count: usize,
pub language: Option<String>,
pub description: Option<String>,
}Expand description
Metadata extracted from a link — the dossier on the target.
Fields§
Author of the content.
published_at: Option<DateTime<Utc>>When the content was published.
word_count: usizeApproximate word count of the main content.
language: Option<String>Detected language of the content.
description: Option<String>Short description or summary.
Implementations§
Source§impl LinkMetadata
impl LinkMetadata
Trait Implementations§
Source§impl Clone for LinkMetadata
impl Clone for LinkMetadata
Source§fn clone(&self) -> LinkMetadata
fn clone(&self) -> LinkMetadata
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 moreSource§impl Debug for LinkMetadata
impl Debug for LinkMetadata
Source§impl<'de> Deserialize<'de> for LinkMetadata
impl<'de> Deserialize<'de> for LinkMetadata
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 LinkMetadata
impl RefUnwindSafe for LinkMetadata
impl Send for LinkMetadata
impl Sync for LinkMetadata
impl Unpin for LinkMetadata
impl UnsafeUnpin for LinkMetadata
impl UnwindSafe for LinkMetadata
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