Struct rust_tdlib::types::MessageProximityAlertTriggered
source · pub struct MessageProximityAlertTriggered { /* private fields */ }
Expand description
A user in the chat came within proximity alert range
Implementations§
source§impl MessageProximityAlertTriggered
impl MessageProximityAlertTriggered
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> MessageProximityAlertTriggeredBuilder
pub fn traveler_id(&self) -> &MessageSender
pub fn watcher_id(&self) -> &MessageSender
pub fn distance(&self) -> i32
Trait Implementations§
source§impl AsRef<MessageProximityAlertTriggered> for MessageProximityAlertTriggered
impl AsRef<MessageProximityAlertTriggered> for MessageProximityAlertTriggered
source§fn as_ref(&self) -> &MessageProximityAlertTriggered
fn as_ref(&self) -> &MessageProximityAlertTriggered
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for MessageProximityAlertTriggered
impl Clone for MessageProximityAlertTriggered
source§fn clone(&self) -> MessageProximityAlertTriggered
fn clone(&self) -> MessageProximityAlertTriggered
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 Default for MessageProximityAlertTriggered
impl Default for MessageProximityAlertTriggered
source§fn default() -> MessageProximityAlertTriggered
fn default() -> MessageProximityAlertTriggered
Returns the “default value” for a type. Read more
source§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