Struct tg_flows::ProximityAlertTriggered
source · pub struct ProximityAlertTriggered {
pub traveler: User,
pub watcher: User,
pub distance: u32,
}Expand description
This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.
Fields§
§traveler: UserUser that triggered the alert.
watcher: UserUser that set the alert.
distance: u32The distance between the users.
Trait Implementations§
source§impl Clone for ProximityAlertTriggered
impl Clone for ProximityAlertTriggered
source§fn clone(&self) -> ProximityAlertTriggered
fn clone(&self) -> ProximityAlertTriggered
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 ProximityAlertTriggered
impl Debug for ProximityAlertTriggered
source§impl<'de> Deserialize<'de> for ProximityAlertTriggered
impl<'de> Deserialize<'de> for ProximityAlertTriggered
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 ProximityAlertTriggered
impl Hash for ProximityAlertTriggered
source§impl PartialEq<ProximityAlertTriggered> for ProximityAlertTriggered
impl PartialEq<ProximityAlertTriggered> for ProximityAlertTriggered
source§fn eq(&self, other: &ProximityAlertTriggered) -> bool
fn eq(&self, other: &ProximityAlertTriggered) -> bool
This method tests for
self and other values to be equal, and is used
by ==.