pub enum EmbedType {
Photo(Photo),
Video(Video),
Link,
Rich(Rich),
}
Expand description
Represents one of the oEmbed data types
Variants§
Photo(Photo)
Photo type
See section 2.3.4.1. of the oembed spec for more information
Video(Video)
Video type
See section 2.3.4.2. of the oembed spec for more information
Link
Link type
See section 2.3.4.3. of the oembed spec for more information
Rich(Rich)
Rich type
See section 2.3.4.4. of the oembed spec for more information
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EmbedType
impl<'de> Deserialize<'de> for EmbedType
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 EmbedType
impl StructuralPartialEq for EmbedType
Auto Trait Implementations§
impl Freeze for EmbedType
impl RefUnwindSafe for EmbedType
impl Send for EmbedType
impl Sync for EmbedType
impl Unpin for EmbedType
impl UnwindSafe for EmbedType
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