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: StringContact’s phone number.
first_name: StringContact’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 PartialOrd for Contact
impl PartialOrd for Contact
Source§impl<'b> ToReplyRequest<'b> for Contact
impl<'b> ToReplyRequest<'b> for Contact
Source§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
Source§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.
impl StructuralPartialEq for Contact
Auto Trait Implementations§
impl Freeze for Contact
impl RefUnwindSafe for Contact
impl Send for Contact
impl Sync for Contact
impl Unpin for Contact
impl UnwindSafe for Contact
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more