Struct telegram_bot_raw_ars::types::message::Contact
source · pub struct Contact {
pub phone_number: String,
pub first_name: String,
pub last_name: Option<String>,
pub user_id: Option<Integer>,
}
Expand description
This object represents a phone contact.
Fields§
§phone_number: String
Contact’s phone number.
first_name: String
Contact’s first name.
last_name: Option<String>
Contact’s last name.
user_id: Option<Integer>
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<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<Contact> for Contact
impl PartialEq<Contact> for Contact
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) -> Self::Requestwhere
M: ToMessageId + ToSourceChat,
fn to_reply_request<M>(&'b self, message: M) -> Self::Requestwhere
M: ToMessageId + ToSourceChat,
Convert type to request and reply to the message.
source§impl<'b> ToRequest<'b> for Contact
impl<'b> ToRequest<'b> for Contact
§type Request = SendContact<'b, 'b, 'b>
type Request = SendContact<'b, 'b, 'b>
Request type.
source§fn to_request<C>(&'b self, chat: C) -> Self::Requestwhere
C: ToChatRef,
fn to_request<C>(&'b self, chat: C) -> Self::Requestwhere
C: ToChatRef,
Convert type to request and send it to the chat.