pub struct InputMessageContentLocation {
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
Represents the content of a location message to be sent as the result of an inline query.
Fields§
§latitude: f64Latitude of the location in degrees.
longitude: f64Longitude of the location in degrees.
horizontal_accuracy: Option<f64>The radius of uncertainty for the location, measured in meters; 0-1500
live_period: Option<u32>Period in seconds for which the location can be updated, should be between 60 and 86400.
heading: Option<u16>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<u32>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§
source§impl Clone for InputMessageContentLocation
impl Clone for InputMessageContentLocation
source§fn clone(&self) -> InputMessageContentLocation
fn clone(&self) -> InputMessageContentLocation
Returns a copy 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 InputMessageContentLocation
impl Debug for InputMessageContentLocation
source§impl<'de> Deserialize<'de> for InputMessageContentLocation
impl<'de> Deserialize<'de> for InputMessageContentLocation
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
impl StructuralPartialEq for InputMessageContentLocation
Auto Trait Implementations§
impl Freeze for InputMessageContentLocation
impl RefUnwindSafe for InputMessageContentLocation
impl Send for InputMessageContentLocation
impl Sync for InputMessageContentLocation
impl Unpin for InputMessageContentLocation
impl UnwindSafe for InputMessageContentLocation
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Erasable for T
impl<T> Erasable for T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more