pub struct InputMediaLocation {
pub latitude: f64,
pub longitude: f64,
pub horizontal_accuracy: Option<f64>,
}Expand description
A location to be sent as poll media.
Fields§
§latitude: f64Latitude of the location.
longitude: f64Longitude of the location.
horizontal_accuracy: Option<f64>Radius of uncertainty in metres (0–1500).
Trait Implementations§
Source§impl Clone for InputMediaLocation
impl Clone for InputMediaLocation
Source§fn clone(&self) -> InputMediaLocation
fn clone(&self) -> InputMediaLocation
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 InputMediaLocation
impl Debug for InputMediaLocation
Source§impl<'de> Deserialize<'de> for InputMediaLocation
impl<'de> Deserialize<'de> for InputMediaLocation
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 InputMediaLocation
impl RefUnwindSafe for InputMediaLocation
impl Send for InputMediaLocation
impl Sync for InputMediaLocation
impl Unpin for InputMediaLocation
impl UnsafeUnpin for InputMediaLocation
impl UnwindSafe for InputMediaLocation
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