Struct telegram_bot_ars::types::Contact
source · pub struct Contact {
pub phone_number: String,
pub first_name: String,
pub last_name: Option<String>,
pub user_id: Option<i64>,
}Expand description
This object represents a phone contact.
Fields§
§phone_number: StringContact’s phone number.
first_name: StringContact’s first name.
last_name: Option<String>Contact’s last name.
user_id: Option<i64>Contact’s user identifier in Telegram.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Contact
impl<'de> Deserialize<'de> for Contact
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Contact, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Contact, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialOrd<Contact> for Contact
impl PartialOrd<Contact> for Contact
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl<'b> ToReplyRequest<'b> for Contact
impl<'b> ToReplyRequest<'b> for Contact
§type Request = SendContact<'b, 'b, 'b>
type Request = SendContact<'b, 'b, 'b>
Request type.
source§fn to_reply_request<M>(
&'b self,
message: M
) -> <Contact as ToReplyRequest<'b>>::Requestwhere
M: ToMessageId + ToSourceChat,
fn to_reply_request<M>(
&'b self,
message: M
) -> <Contact as ToReplyRequest<'b>>::Requestwhere
M: ToMessageId + ToSourceChat,
Convert type to request and reply to the message.