#[non_exhaustive]pub struct EmbedVideo {
pub url: Option<CompactString>,
pub proxy_url: Option<CompactString>,
pub height: Option<u32>,
pub width: Option<u32>,
pub content_type: Option<CompactString>,
pub placeholder: Option<CompactString>,
pub placeholder_version: Option<u32>,
pub description: Option<CompactString>,
pub flags: Option<EmbedMediaFlags>,
}Expand description
The video of an embed.
discord.js counterpart: APIEmbedVideo (discord-api-types).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.url: Option<CompactString>The source URL.
proxy_url: Option<CompactString>The URL through Discord’s media proxy.
height: Option<u32>The height in pixels.
width: Option<u32>The width in pixels.
content_type: Option<CompactString>The media type.
placeholder: Option<CompactString>A thumbhash placeholder.
placeholder_version: Option<u32>The version of the placeholder.
description: Option<CompactString>The description (alt text).
flags: Option<EmbedMediaFlags>The media flags.
Trait Implementations§
Source§impl Clone for EmbedVideo
impl Clone for EmbedVideo
Source§impl Debug for EmbedVideo
impl Debug for EmbedVideo
Source§impl Default for EmbedVideo
impl Default for EmbedVideo
Source§impl<'de> Deserialize<'de> for EmbedVideo
impl<'de> Deserialize<'de> for EmbedVideo
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 Eq for EmbedVideo
Source§impl Hash for EmbedVideo
impl Hash for EmbedVideo
Source§impl PartialEq for EmbedVideo
impl PartialEq for EmbedVideo
Source§impl Serialize for EmbedVideo
impl Serialize for EmbedVideo
impl StructuralPartialEq for EmbedVideo
Auto Trait Implementations§
impl Freeze for EmbedVideo
impl RefUnwindSafe for EmbedVideo
impl Send for EmbedVideo
impl Sync for EmbedVideo
impl Unpin for EmbedVideo
impl UnsafeUnpin for EmbedVideo
impl UnwindSafe for EmbedVideo
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