pub struct InputMessageLocation {
pub location: Location,
pub live_period: i32,
pub heading: i32,
pub proximity_alert_radius: i32,
}
Expand description
A message with a location
Fields§
§location: Location
Location to be sent
live_period: i32
Period for which the location can be updated, in seconds; must be between 60 and 86400 for a temporary live location, 0x7FFFFFFF for permanent live location, and 0 otherwise
heading: i32
For live locations, a direction in which the location moves, in degrees; 1-360. Pass 0 if unknown
proximity_alert_radius: i32
For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled. Can’t be enabled in channels and Saved Messages
Trait Implementations§
Source§impl Clone for InputMessageLocation
impl Clone for InputMessageLocation
Source§fn clone(&self) -> InputMessageLocation
fn clone(&self) -> InputMessageLocation
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 InputMessageLocation
impl Debug for InputMessageLocation
Source§impl Default for InputMessageLocation
impl Default for InputMessageLocation
Source§fn default() -> InputMessageLocation
fn default() -> InputMessageLocation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputMessageLocation
impl<'de> Deserialize<'de> for InputMessageLocation
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 InputMessageLocation
impl PartialEq for InputMessageLocation
Source§impl Serialize for InputMessageLocation
impl Serialize for InputMessageLocation
impl StructuralPartialEq for InputMessageLocation
Auto Trait Implementations§
impl Freeze for InputMessageLocation
impl RefUnwindSafe for InputMessageLocation
impl Send for InputMessageLocation
impl Sync for InputMessageLocation
impl Unpin for InputMessageLocation
impl UnwindSafe for InputMessageLocation
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