Struct tbot::types::ProximityAlert
source · Expand description
Represents a service message sent when a user triggers a proximity alert set by another user.
See ProximityAlertTriggered
from Bot API docs.
Fields§
§traveler: User
The user who triggered the alert.
watcher: User
The user who set the alert.
distance: u32
The distance between the users.
Trait Implementations§
source§impl Clone for ProximityAlert
impl Clone for ProximityAlert
source§fn clone(&self) -> ProximityAlert
fn clone(&self) -> ProximityAlert
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 ProximityAlert
impl Debug for ProximityAlert
source§impl<'de> Deserialize<'de> for ProximityAlert
impl<'de> Deserialize<'de> for ProximityAlert
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 Hash for ProximityAlert
impl Hash for ProximityAlert
source§impl PartialEq<ProximityAlert> for ProximityAlert
impl PartialEq<ProximityAlert> for ProximityAlert
source§fn eq(&self, other: &ProximityAlert) -> bool
fn eq(&self, other: &ProximityAlert) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.