pub struct InputThumbnail {
pub thumbnail: InputFile,
pub width: i32,
pub height: i32,
}
Expand description
A thumbnail to be sent along with a file; should be in JPEG or WEBP format for stickers, and less than 200 kB in size
Fields§
§thumbnail: InputFile
Thumbnail file to send. Sending thumbnails by file_id is currently not supported
width: i32
Thumbnail width, usually shouldn’t exceed 90. Use 0 if unknown
height: i32
Thumbnail height, usually shouldn’t exceed 90. Use 0 if unknown
Trait Implementations§
Source§impl Clone for InputThumbnail
impl Clone for InputThumbnail
Source§fn clone(&self) -> InputThumbnail
fn clone(&self) -> InputThumbnail
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 InputThumbnail
impl Debug for InputThumbnail
Source§impl<'de> Deserialize<'de> for InputThumbnail
impl<'de> Deserialize<'de> for InputThumbnail
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 InputThumbnail
impl RefUnwindSafe for InputThumbnail
impl Send for InputThumbnail
impl Sync for InputThumbnail
impl Unpin for InputThumbnail
impl UnwindSafe for InputThumbnail
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