pub struct InputRichBlockMap {
pub location: Location,
pub zoom: u8,
pub width: u32,
pub height: u32,
pub caption: Option<RichBlockCaption>,
}Expand description
A map (<tg-map>).
The map’s width and height must not exceed 10000 in total. The width and height ratio must be at most 20.
Fields§
§location: LocationLocation of the center of the map.
zoom: u8Map zoom level; 0–24.
width: u32Map width; 0–10000.
height: u32Map height; 0–10000.
caption: Option<RichBlockCaption>Caption of the block.
Trait Implementations§
Source§impl Clone for InputRichBlockMap
impl Clone for InputRichBlockMap
Source§fn clone(&self) -> InputRichBlockMap
fn clone(&self) -> InputRichBlockMap
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 InputRichBlockMap
impl Debug for InputRichBlockMap
Source§impl<'de> Deserialize<'de> for InputRichBlockMap
impl<'de> Deserialize<'de> for InputRichBlockMap
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 InputRichBlockMap
impl RefUnwindSafe for InputRichBlockMap
impl Send for InputRichBlockMap
impl Sync for InputRichBlockMap
impl Unpin for InputRichBlockMap
impl UnsafeUnpin for InputRichBlockMap
impl UnwindSafe for InputRichBlockMap
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