[][src]Struct telegram_bot::types::Contact

pub struct Contact {
    pub phone_number: String,
    pub first_name: String,
    pub last_name: Option<String>,
    pub user_id: Option<i64>,
}

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<i64>

Contact's user identifier in Telegram.

Trait Implementations

impl Clone for Contact[src]

impl Debug for Contact[src]

impl<'de> Deserialize<'de> for Contact[src]

impl PartialEq<Contact> for Contact[src]

impl PartialOrd<Contact> for Contact[src]

impl StructuralPartialEq for Contact[src]

impl<'b> ToReplyRequest<'b> for Contact[src]

type Request = SendContact<'b, 'b, 'b>

Request type.

impl<'b> ToRequest<'b> for Contact[src]

type Request = SendContact<'b, 'b, 'b>

Request type.

Auto Trait Implementations

impl RefUnwindSafe for Contact[src]

impl Send for Contact[src]

impl Sync for Contact[src]

impl Unpin for Contact[src]

impl UnwindSafe for Contact[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]