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
Fields§
§latitude: f64Latitude of the location in degrees
longitude: f64Longitude 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 during which the location can be updated, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.
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.
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 (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 InputLocationMessageContent
impl Debug for InputLocationMessageContent
Source§impl Default for InputLocationMessageContent
impl Default for InputLocationMessageContent
Source§fn default() -> InputLocationMessageContent
fn default() -> InputLocationMessageContent
Returns the “default value” for a type. Read more
Source§impl From<InputLocationMessageContent> for InputMessageContent
impl From<InputLocationMessageContent> for InputMessageContent
Source§fn from(value: InputLocationMessageContent) -> Self
fn from(value: InputLocationMessageContent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InputLocationMessageContent
impl PartialEq for InputLocationMessageContent
Source§fn eq(&self, other: &InputLocationMessageContent) -> bool
fn eq(&self, other: &InputLocationMessageContent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InputLocationMessageContent
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