pub struct WebsiteMetadata {
pub url: Option<String>,
pub original_url: Option<String>,
pub special: Option<Special>,
pub title: Option<String>,
pub description: Option<String>,
pub image: Option<Image>,
pub video: Option<Video>,
pub site_name: Option<String>,
pub icon_url: Option<String>,
pub colour: Option<String>,
}
Expand description
Website metadata
Fields§
§url: Option<String>
Direct URL to web page
original_url: Option<String>
Original direct URL
special: Option<Special>
Remote content
title: Option<String>
Title of website
description: Option<String>
Description of website
image: Option<Image>
Embedded image
video: Option<Video>
Embedded video
site_name: Option<String>
Site name
icon_url: Option<String>
URL to site icon
colour: Option<String>
CSS colour
Trait Implementations§
Source§impl Clone for WebsiteMetadata
impl Clone for WebsiteMetadata
Source§fn clone(&self) -> WebsiteMetadata
fn clone(&self) -> WebsiteMetadata
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 WebsiteMetadata
impl Debug for WebsiteMetadata
Source§impl<'de> Deserialize<'de> for WebsiteMetadata
impl<'de> Deserialize<'de> for WebsiteMetadata
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 WebsiteMetadata
impl RefUnwindSafe for WebsiteMetadata
impl Send for WebsiteMetadata
impl Sync for WebsiteMetadata
impl Unpin for WebsiteMetadata
impl UnwindSafe for WebsiteMetadata
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