pub enum EmbedSpecial {
None,
YouTube {
id: String,
},
Twitch {
content_type: TwitchContentType,
id: String,
},
Spotify {
content_type: String,
id: String,
},
Soundcloud,
Bandcamp {
content_type: BandcampContentType,
id: String,
},
}Expand description
Data about an embed of a special website, if it is the case
Variants§
Trait Implementations§
Source§impl Clone for EmbedSpecial
impl Clone for EmbedSpecial
Source§fn clone(&self) -> EmbedSpecial
fn clone(&self) -> EmbedSpecial
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 EmbedSpecial
impl Debug for EmbedSpecial
Source§impl<'de> Deserialize<'de> for EmbedSpecial
impl<'de> Deserialize<'de> for EmbedSpecial
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 Hash for EmbedSpecial
impl Hash for EmbedSpecial
Source§impl Ord for EmbedSpecial
impl Ord for EmbedSpecial
Source§fn cmp(&self, other: &EmbedSpecial) -> Ordering
fn cmp(&self, other: &EmbedSpecial) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EmbedSpecial
impl PartialEq for EmbedSpecial
Source§impl PartialOrd for EmbedSpecial
impl PartialOrd for EmbedSpecial
Source§impl Serialize for EmbedSpecial
impl Serialize for EmbedSpecial
impl Eq for EmbedSpecial
impl StructuralPartialEq for EmbedSpecial
Auto Trait Implementations§
impl Freeze for EmbedSpecial
impl RefUnwindSafe for EmbedSpecial
impl Send for EmbedSpecial
impl Sync for EmbedSpecial
impl Unpin for EmbedSpecial
impl UnwindSafe for EmbedSpecial
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