pub struct InputLocationMessageContent {
pub latitude: f64,
pub longitude: f64,
pub horizontal_accuracy: Option<f64>,
pub live_period: Option<i64>,
pub heading: Option<i64>,
pub proximity_alert_radius: Option<i64>,
}
Expand description
Represents the content of a location message to be sent as the result of an inline query.
Fields
latitude: f64
Latitude of the location in degrees
longitude: f64
Longitude of the location in degrees
horizontal_accuracy: Option<f64>
Optional. The radius of uncertainty for the location, measured in meters; 0-1500
live_period: Option<i64>
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
heading: Option<i64>
Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
proximity_alert_radius: Option<i64>
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
Implementations
Trait Implementations
sourceimpl Clone for InputLocationMessageContent
impl Clone for InputLocationMessageContent
sourcefn clone(&self) -> InputLocationMessageContent
fn clone(&self) -> InputLocationMessageContent
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InputLocationMessageContent
impl Debug for InputLocationMessageContent
sourceimpl<'de> Deserialize<'de> for InputLocationMessageContent
impl<'de> Deserialize<'de> for InputLocationMessageContent
sourcefn 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 RefUnwindSafe for InputLocationMessageContent
impl Send for InputLocationMessageContent
impl Sync for InputLocationMessageContent
impl Unpin for InputLocationMessageContent
impl UnwindSafe for InputLocationMessageContent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more