pub struct LinkPreviewTypeBackground {
pub document: Option<Document>,
pub background_type: Option<BackgroundType>,
}Expand description
The link is a link to a background. Link preview title and description are available only for filled backgrounds
Fields§
§document: Option<Document>Document with the background; may be null for filled backgrounds
background_type: Option<BackgroundType>Type of the background; may be null if unknown
Trait Implementations§
Source§impl Clone for LinkPreviewTypeBackground
impl Clone for LinkPreviewTypeBackground
Source§fn clone(&self) -> LinkPreviewTypeBackground
fn clone(&self) -> LinkPreviewTypeBackground
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 LinkPreviewTypeBackground
impl Debug for LinkPreviewTypeBackground
Source§impl<'de> Deserialize<'de> for LinkPreviewTypeBackground
impl<'de> Deserialize<'de> for LinkPreviewTypeBackground
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
impl StructuralPartialEq for LinkPreviewTypeBackground
Auto Trait Implementations§
impl Freeze for LinkPreviewTypeBackground
impl RefUnwindSafe for LinkPreviewTypeBackground
impl Send for LinkPreviewTypeBackground
impl Sync for LinkPreviewTypeBackground
impl Unpin for LinkPreviewTypeBackground
impl UnsafeUnpin for LinkPreviewTypeBackground
impl UnwindSafe for LinkPreviewTypeBackground
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