pub struct RichBlockMap {
pub location: Location,
pub zoom: u8,
pub width: u32,
pub height: u32,
pub caption: Option<RichBlockCaption>,
}Expand description
An embedded map (<tg-map>).
Fields§
§location: LocationLocation of the map centre.
Telegram sends this as a nested location object. It was previously
modelled as flat latitude/longitude fields here, which meant every
real map block failed to deserialize with “missing field latitude”.
zoom: u8Zoom level (13–20).
width: u32Expected rendered width in pixels.
height: u32Expected rendered height in pixels.
caption: Option<RichBlockCaption>Optional caption.
Trait Implementations§
Source§impl Clone for RichBlockMap
impl Clone for RichBlockMap
Source§fn clone(&self) -> RichBlockMap
fn clone(&self) -> RichBlockMap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RichBlockMap
impl Debug for RichBlockMap
Source§impl<'de> Deserialize<'de> for RichBlockMap
impl<'de> Deserialize<'de> for RichBlockMap
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 RichBlockMap
impl RefUnwindSafe for RichBlockMap
impl Send for RichBlockMap
impl Sync for RichBlockMap
impl Unpin for RichBlockMap
impl UnsafeUnpin for RichBlockMap
impl UnwindSafe for RichBlockMap
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