pub enum PaidMediaUnion {
PaidMediaLivePhoto(Box<PaidMediaLivePhoto>),
PaidMediaPhoto(Box<PaidMediaPhoto>),
PaidMediaPreview(Box<PaidMediaPreview>),
PaidMediaVideo(Box<PaidMediaVideo>),
}Variants§
PaidMediaLivePhoto(Box<PaidMediaLivePhoto>)
PaidMediaPhoto(Box<PaidMediaPhoto>)
PaidMediaPreview(Box<PaidMediaPreview>)
PaidMediaVideo(Box<PaidMediaVideo>)
Trait Implementations§
Source§impl Clone for PaidMediaUnion
impl Clone for PaidMediaUnion
Source§impl Debug for PaidMediaUnion
impl Debug for PaidMediaUnion
Source§impl<'de> Deserialize<'de> for PaidMediaUnion
impl<'de> Deserialize<'de> for PaidMediaUnion
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 From<PaidMediaLivePhoto> for PaidMediaUnion
impl From<PaidMediaLivePhoto> for PaidMediaUnion
Source§fn from(value: PaidMediaLivePhoto) -> Self
fn from(value: PaidMediaLivePhoto) -> Self
Converts to this type from the input type.
Source§impl From<PaidMediaPhoto> for PaidMediaUnion
impl From<PaidMediaPhoto> for PaidMediaUnion
Source§fn from(value: PaidMediaPhoto) -> Self
fn from(value: PaidMediaPhoto) -> Self
Converts to this type from the input type.
Source§impl From<PaidMediaPreview> for PaidMediaUnion
impl From<PaidMediaPreview> for PaidMediaUnion
Source§fn from(value: PaidMediaPreview) -> Self
fn from(value: PaidMediaPreview) -> Self
Converts to this type from the input type.
Source§impl From<PaidMediaVideo> for PaidMediaUnion
impl From<PaidMediaVideo> for PaidMediaUnion
Source§fn from(value: PaidMediaVideo) -> Self
fn from(value: PaidMediaVideo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PaidMediaUnion
impl PartialEq for PaidMediaUnion
Source§impl Serialize for PaidMediaUnion
impl Serialize for PaidMediaUnion
impl StructuralPartialEq for PaidMediaUnion
Auto Trait Implementations§
impl Freeze for PaidMediaUnion
impl RefUnwindSafe for PaidMediaUnion
impl Send for PaidMediaUnion
impl Sync for PaidMediaUnion
impl Unpin for PaidMediaUnion
impl UnsafeUnpin for PaidMediaUnion
impl UnwindSafe for PaidMediaUnion
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