pub enum PaidMedia {
Preview(PaidMediaPreview),
Photo(PaidMediaPhoto),
Video(PaidMediaVideo),
LivePhoto(PaidMediaLivePhoto),
}Expand description
One item of paid media.
The preview variant is what a user sees before purchasing; the others
carry the real media once it has been bought.
Variants§
Preview(PaidMediaPreview)
A preview shown before purchase.
Photo(PaidMediaPhoto)
A photo.
Video(PaidMediaVideo)
A video.
LivePhoto(PaidMediaLivePhoto)
A live photo.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PaidMedia
impl<'de> Deserialize<'de> for PaidMedia
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
Auto Trait Implementations§
impl Freeze for PaidMedia
impl RefUnwindSafe for PaidMedia
impl Send for PaidMedia
impl Sync for PaidMedia
impl Unpin for PaidMedia
impl UnsafeUnpin for PaidMedia
impl UnwindSafe for PaidMedia
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