pub struct PaidMediaPreview {
pub width: Option<i64>,
pub height: Option<i64>,
pub duration: Option<i64>,
}Expand description
A preview shown before a user purchases paid media.
Fields§
§width: Option<i64>Media width as defined by the sender.
height: Option<i64>Media height as defined by the sender.
duration: Option<i64>Duration of the media in seconds as defined by the sender.
Trait Implementations§
Source§impl Clone for PaidMediaPreview
impl Clone for PaidMediaPreview
Source§fn clone(&self) -> PaidMediaPreview
fn clone(&self) -> PaidMediaPreview
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 PaidMediaPreview
impl Debug for PaidMediaPreview
Source§impl<'de> Deserialize<'de> for PaidMediaPreview
impl<'de> Deserialize<'de> for PaidMediaPreview
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 PaidMediaPreview
impl RefUnwindSafe for PaidMediaPreview
impl Send for PaidMediaPreview
impl Sync for PaidMediaPreview
impl Unpin for PaidMediaPreview
impl UnsafeUnpin for PaidMediaPreview
impl UnwindSafe for PaidMediaPreview
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