pub struct GetMapThumbnailFile {
pub location: Location,
pub zoom: i32,
pub width: i32,
pub height: i32,
pub scale: i32,
pub chat_id: i64,
}
Expand description
Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded
Fields§
§location: Location
Location of the map center
zoom: i32
Map zoom level; 13-20
width: i32
Map width in pixels before applying scale; 16-1024
height: i32
Map height in pixels before applying scale; 16-1024
scale: i32
Map scale; 1-3
chat_id: i64
Identifier of a chat, in which the thumbnail will be shown. Use 0 if unknown
Trait Implementations§
Source§impl Clone for GetMapThumbnailFile
impl Clone for GetMapThumbnailFile
Source§fn clone(&self) -> GetMapThumbnailFile
fn clone(&self) -> GetMapThumbnailFile
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 GetMapThumbnailFile
impl Debug for GetMapThumbnailFile
Source§impl<'de> Deserialize<'de> for GetMapThumbnailFile
impl<'de> Deserialize<'de> for GetMapThumbnailFile
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 Method for GetMapThumbnailFile
impl Method for GetMapThumbnailFile
Auto Trait Implementations§
impl Freeze for GetMapThumbnailFile
impl RefUnwindSafe for GetMapThumbnailFile
impl Send for GetMapThumbnailFile
impl Sync for GetMapThumbnailFile
impl Unpin for GetMapThumbnailFile
impl UnwindSafe for GetMapThumbnailFile
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