pub struct MessageProximityAlertTriggered {
pub traveler_id: MessageSender,
pub watcher_id: MessageSender,
pub distance: i32,
}
Expand description
A user in the chat came within proximity alert range
Fields§
§traveler_id: MessageSender
The identifier of a user or chat that triggered the proximity alert
watcher_id: MessageSender
The identifier of a user or chat that subscribed for the proximity alert
distance: i32
The distance between the users
Trait Implementations§
Source§impl Clone for MessageProximityAlertTriggered
impl Clone for MessageProximityAlertTriggered
Source§fn clone(&self) -> MessageProximityAlertTriggered
fn clone(&self) -> MessageProximityAlertTriggered
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<'de> Deserialize<'de> for MessageProximityAlertTriggered
impl<'de> Deserialize<'de> for MessageProximityAlertTriggered
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 MessageProximityAlertTriggered
impl PartialEq for MessageProximityAlertTriggered
Source§fn eq(&self, other: &MessageProximityAlertTriggered) -> bool
fn eq(&self, other: &MessageProximityAlertTriggered) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for MessageProximityAlertTriggered
Auto Trait Implementations§
impl Freeze for MessageProximityAlertTriggered
impl RefUnwindSafe for MessageProximityAlertTriggered
impl Send for MessageProximityAlertTriggered
impl Sync for MessageProximityAlertTriggered
impl Unpin for MessageProximityAlertTriggered
impl UnwindSafe for MessageProximityAlertTriggered
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