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<PageMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PageMetadata, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 UnsafeUnpin 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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.