pub struct Opengraph {
pub og_type: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub url: Option<String>,
pub site_name: Option<String>,
pub locale: Option<String>,
pub locale_alternates: Vec<String>,
pub images: Vec<OpengraphMedia>,
pub videos: Vec<OpengraphMedia>,
pub audios: Vec<OpengraphMedia>,
pub properties: HashMap<String, String>,
}Expand description
OpenGraph metadata for a webpage.
OpenGraph is a protocol for structured data in web pages, originally developed by Facebook. It allows websites to control how content appears when shared on social media platforms.
Fields§
§og_type: Option<String>The type of object (e.g., “website”, “article”, “video.movie”)
title: Option<String>The title of the object
description: Option<String>A brief description of the content
url: Option<String>The canonical URL of the object
site_name: Option<String>The name of the site
locale: Option<String>The locale of the content (e.g., “en_US”)
locale_alternates: Vec<String>Alternative locales available
images: Vec<OpengraphMedia>Images associated with the object
videos: Vec<OpengraphMedia>Videos associated with the object
audios: Vec<OpengraphMedia>Audio files associated with the object
properties: HashMap<String, String>Additional properties not covered by standard fields
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Opengraph
impl<'de> Deserialize<'de> for Opengraph
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 Opengraph
impl RefUnwindSafe for Opengraph
impl Send for Opengraph
impl Sync for Opengraph
impl Unpin for Opengraph
impl UnwindSafe for Opengraph
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