pub struct TwitterCard {
pub card: Option<String>,
pub site: Option<String>,
pub creator: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub image: Option<String>,
pub extra: HashMap<String, String>,
}Expand description
Twitter Card metadata
Fields§
§card: Option<String>twitter:card
site: Option<String>twitter:site
creator: Option<String>twitter:creator
title: Option<String>twitter:title
description: Option<String>twitter:description
image: Option<String>twitter:image
extra: HashMap<String, String>Additional properties
Implementations§
Source§impl TwitterCard
impl TwitterCard
Sourcepub fn is_present(&self) -> bool
pub fn is_present(&self) -> bool
Check if Twitter Card data is present
Trait Implementations§
Source§impl Clone for TwitterCard
impl Clone for TwitterCard
Source§fn clone(&self) -> TwitterCard
fn clone(&self) -> TwitterCard
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 TwitterCard
impl Debug for TwitterCard
Source§impl Default for TwitterCard
impl Default for TwitterCard
Source§fn default() -> TwitterCard
fn default() -> TwitterCard
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TwitterCard
impl<'de> Deserialize<'de> for TwitterCard
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 TwitterCard
impl RefUnwindSafe for TwitterCard
impl Send for TwitterCard
impl Sync for TwitterCard
impl Unpin for TwitterCard
impl UnwindSafe for TwitterCard
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