pub struct MessageLocation {
pub location: Location,
pub live_period: i32,
pub expires_in: i32,
pub heading: i32,
pub proximity_alert_radius: i32,
}
Expand description
A message with a location
Fields§
§location: Location
The location description
live_period: i32
Time relative to the message send date, for which the location can be updated, in seconds; if 0x7FFFFFFF, then location can be updated forever
expires_in: i32
Left time for which the location can be updated, in seconds. If 0, then the location can’t be updated anymore. The update updateMessageContent is not sent when this field changes
heading: i32
For live locations, a direction in which the location moves, in degrees; 1-360. If 0 the direction is unknown
proximity_alert_radius: i32
For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. Available only to the message sender
Trait Implementations§
Source§impl Clone for MessageLocation
impl Clone for MessageLocation
Source§fn clone(&self) -> MessageLocation
fn clone(&self) -> MessageLocation
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 MessageLocation
impl Debug for MessageLocation
Source§impl Default for MessageLocation
impl Default for MessageLocation
Source§fn default() -> MessageLocation
fn default() -> MessageLocation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageLocation
impl<'de> Deserialize<'de> for MessageLocation
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
Source§impl PartialEq for MessageLocation
impl PartialEq for MessageLocation
Source§impl Serialize for MessageLocation
impl Serialize for MessageLocation
impl StructuralPartialEq for MessageLocation
Auto Trait Implementations§
impl Freeze for MessageLocation
impl RefUnwindSafe for MessageLocation
impl Send for MessageLocation
impl Sync for MessageLocation
impl Unpin for MessageLocation
impl UnwindSafe for MessageLocation
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