pub struct LinkPreviewTypeExternalVideo {
pub url: String,
pub mime_type: String,
pub width: i32,
pub height: i32,
pub duration: i32,
}Expand description
The link is a link to a video file
Fields§
§url: StringURL of the video file
mime_type: StringMIME type of the video file
width: i32Expected width of the video preview; 0 if unknown
height: i32Expected height of the video preview; 0 if unknown
duration: i32Duration of the video, in seconds; 0 if unknown
Trait Implementations§
Source§impl Clone for LinkPreviewTypeExternalVideo
impl Clone for LinkPreviewTypeExternalVideo
Source§fn clone(&self) -> LinkPreviewTypeExternalVideo
fn clone(&self) -> LinkPreviewTypeExternalVideo
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 LinkPreviewTypeExternalVideo
impl Debug for LinkPreviewTypeExternalVideo
Source§impl Default for LinkPreviewTypeExternalVideo
impl Default for LinkPreviewTypeExternalVideo
Source§fn default() -> LinkPreviewTypeExternalVideo
fn default() -> LinkPreviewTypeExternalVideo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LinkPreviewTypeExternalVideo
impl<'de> Deserialize<'de> for LinkPreviewTypeExternalVideo
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
Source§impl PartialEq for LinkPreviewTypeExternalVideo
impl PartialEq for LinkPreviewTypeExternalVideo
Source§fn eq(&self, other: &LinkPreviewTypeExternalVideo) -> bool
fn eq(&self, other: &LinkPreviewTypeExternalVideo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LinkPreviewTypeExternalVideo
Auto Trait Implementations§
impl Freeze for LinkPreviewTypeExternalVideo
impl RefUnwindSafe for LinkPreviewTypeExternalVideo
impl Send for LinkPreviewTypeExternalVideo
impl Sync for LinkPreviewTypeExternalVideo
impl Unpin for LinkPreviewTypeExternalVideo
impl UnsafeUnpin for LinkPreviewTypeExternalVideo
impl UnwindSafe for LinkPreviewTypeExternalVideo
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