pub struct InputLocationMessageContent {
pub latitude: f64,
pub longitude: f64,
pub horizontal_accuracy: Option<f64>,
pub live_period: Option<u32>,
pub heading: Option<u16>,
pub proximity_alert_radius: Option<u32>,
}Expand description
Live location content for an inline query result.
Fields§
§latitude: f64Latitude in degrees.
longitude: f64Longitude in degrees.
horizontal_accuracy: Option<f64>Radius of uncertainty for the location, in metres (0–1500).
live_period: Option<u32>Period in seconds during which the location can be updated (60–86400).
heading: Option<u16>Direction of movement in degrees (1–360).
proximity_alert_radius: Option<u32>Maximum distance for proximity alerts in metres.
Trait Implementations§
Source§impl Clone for InputLocationMessageContent
impl Clone for InputLocationMessageContent
Source§fn clone(&self) -> InputLocationMessageContent
fn clone(&self) -> InputLocationMessageContent
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 InputLocationMessageContent
impl Debug for InputLocationMessageContent
Source§impl<'de> Deserialize<'de> for InputLocationMessageContent
impl<'de> Deserialize<'de> for InputLocationMessageContent
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 InputLocationMessageContent
impl RefUnwindSafe for InputLocationMessageContent
impl Send for InputLocationMessageContent
impl Sync for InputLocationMessageContent
impl Unpin for InputLocationMessageContent
impl UnsafeUnpin for InputLocationMessageContent
impl UnwindSafe for InputLocationMessageContent
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