[][src]Struct webpage::opengraph::Opengraph

pub struct Opengraph {
    pub og_type: String,
    pub properties: HashMap<String, String>,
    pub images: Vec<OpengraphObject>,
    pub videos: Vec<OpengraphObject>,
    pub audios: Vec<OpengraphObject>,
}

Representing OpenGraph information

Fields

og_type: String

Opengraph type (article, image, event, ..)

properties: HashMap<String, String>

Opengraph properties of this object

images: Vec<OpengraphObject>

Images relevant to this object

videos: Vec<OpengraphObject>

Videos relevant to this object

audios: Vec<OpengraphObject>

Audio relevant to this object

Methods

impl Opengraph[src]

pub fn empty() -> Self[src]

pub fn extend(&mut self, property: &str, content: String)[src]

Trait Implementations

impl Debug for Opengraph[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.