pub struct PageMetadata {
pub title: Option<String>,
pub description: Option<String>,
pub canonical_url: Option<Url>,
pub open_graph: HashMap<String, String>,
pub feed_urls: Vec<Url>,
}Expand description
Structured page metadata extracted from an HTML response.
Fields§
§title: Option<String>Contents of the <title> element.
description: Option<String>Contents of <meta name="description">.
canonical_url: Option<Url>Canonical URL from <link rel="canonical">.
open_graph: HashMap<String, String>Open Graph metadata such as og:title or og:image.
feed_urls: Vec<Url>Feed URLs discovered from alternate RSS/Atom link tags.
Implementations§
Trait Implementations§
Source§impl Clone for PageMetadata
impl Clone for PageMetadata
Source§fn clone(&self) -> PageMetadata
fn clone(&self) -> PageMetadata
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 PageMetadata
impl Debug for PageMetadata
Source§impl Default for PageMetadata
impl Default for PageMetadata
Source§fn default() -> PageMetadata
fn default() -> PageMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PageMetadata
impl<'de> Deserialize<'de> for PageMetadata
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
Source§impl PartialEq for PageMetadata
impl PartialEq for PageMetadata
Source§impl Serialize for PageMetadata
impl Serialize for PageMetadata
impl Eq for PageMetadata
impl StructuralPartialEq for PageMetadata
Auto Trait Implementations§
impl Freeze for PageMetadata
impl RefUnwindSafe for PageMetadata
impl Send for PageMetadata
impl Sync for PageMetadata
impl Unpin for PageMetadata
impl UnwindSafe for PageMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more