pub struct InputPaidMedia {
pub type: InputPaidMediaType,
pub media: InputFile,
pub thumbnail: Option<InputThumbnail>,
pub added_sticker_file_ids: Vec<i32>,
pub width: i32,
pub height: i32,
}Expand description
Describes a paid media to be sent
Fields§
§type: InputPaidMediaTypeType of the media
media: InputFilePhoto or video to be sent
thumbnail: Option<InputThumbnail>Media thumbnail; pass null to skip thumbnail uploading
added_sticker_file_ids: Vec<i32>File identifiers of the stickers added to the media, if applicable
width: i32Media width
height: i32Media height
Trait Implementations§
Source§impl Clone for InputPaidMedia
impl Clone for InputPaidMedia
Source§fn clone(&self) -> InputPaidMedia
fn clone(&self) -> InputPaidMedia
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 InputPaidMedia
impl Debug for InputPaidMedia
Source§impl<'de> Deserialize<'de> for InputPaidMedia
impl<'de> Deserialize<'de> for InputPaidMedia
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 PartialEq for InputPaidMedia
impl PartialEq for InputPaidMedia
Source§impl Serialize for InputPaidMedia
impl Serialize for InputPaidMedia
impl StructuralPartialEq for InputPaidMedia
Auto Trait Implementations§
impl Freeze for InputPaidMedia
impl RefUnwindSafe for InputPaidMedia
impl Send for InputPaidMedia
impl Sync for InputPaidMedia
impl Unpin for InputPaidMedia
impl UnsafeUnpin for InputPaidMedia
impl UnwindSafe for InputPaidMedia
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