pub enum Embed {
Website(WebsiteEmbed),
Image(ImageEmbed),
Video(VideoEmbed),
Text(WebsiteEmbed),
None,
}Variants§
Website(WebsiteEmbed)
Used for links and bot-created embeds
Image(ImageEmbed)
Used when a user uploads an image
Video(VideoEmbed)
Used when a user uploads a video
Text(WebsiteEmbed)
Sometimes used for pure text updates
None
Fallback for unknown types
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Embed
impl<'de> Deserialize<'de> for Embed
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 Embed
Auto Trait Implementations§
impl Freeze for Embed
impl RefUnwindSafe for Embed
impl Send for Embed
impl Sync for Embed
impl Unpin for Embed
impl UnsafeUnpin for Embed
impl UnwindSafe for Embed
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