[][src]Struct telegram_bot::types::chat::User

pub struct User {
    pub id: UserId,
    pub first_name: String,
    pub last_name: Option<String>,
    pub username: Option<String>,
    pub is_bot: bool,
    pub language_code: Option<String>,
}

This object represents a Telegram user or bot.

Fields

id: UserId

Unique identifier for this user or bot.

first_name: String

User‘s or bot’s first name.

last_name: Option<String>

User‘s or bot’s last name.

username: Option<String>

User‘s or bot’s username.

is_bot: bool

True, if this user is a bot.

language_code: Option<String>

IETF language tag of the user's language

Trait Implementations

impl Clone for User[src]

impl Debug for User[src]

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

impl Eq for User[src]

impl Hash for User[src]

impl Ord for User[src]

impl PartialEq<User> for User[src]

impl PartialOrd<User> for User[src]

impl StructuralEq for User[src]

impl StructuralPartialEq for User[src]

impl ToChatRef for User[src]

impl ToUserId for User[src]

Auto Trait Implementations

impl RefUnwindSafe for User[src]

impl Send for User[src]

impl Sync for User[src]

impl Unpin for User[src]

impl UnwindSafe for User[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<C> CanGetChat for C where
    C: ToChatRef
[src]

impl<C> CanGetChatAdministrators for C where
    C: ToChatRef
[src]

impl<C> CanGetChatMemberForChat for C where
    C: ToChatRef
[src]

impl<U> CanGetChatMemberForUser for U where
    U: ToUserId
[src]

impl<C> CanGetChatMembersCount for C where
    C: ToChatRef
[src]

impl<'b, U> CanGetUserProfilePhotos for U where
    U: ToUserId
[src]

impl<C> CanKickChatMemberForChat for C where
    C: ToChatRef
[src]

impl<U> CanKickChatMemberForUser for U where
    U: ToUserId
[src]

impl<C> CanLeaveChat for C where
    C: ToChatRef
[src]

impl<M> CanSendAudio for M where
    M: ToChatRef
[src]

impl<C> CanSendChatAction for C where
    C: ToChatRef
[src]

impl<'p, 'f, 'l, C> CanSendContact<'p, 'f, 'l> for C where
    C: ToChatRef
[src]

impl<M> CanSendDocument for M where
    M: ToChatRef
[src]

impl<C> CanSendLocation for C where
    C: ToChatRef
[src]

impl<C> CanSendMessage for C where
    C: ToChatRef
[src]

impl<M> CanSendPhoto for M where
    M: ToChatRef
[src]

impl<C> CanSendPoll for C where
    C: ToChatRef
[src]

impl<'t, 'a, 'f, C> CanSendVenue<'t, 'a, 'f> for C where
    C: ToChatRef
[src]

impl<M> CanSendVideo for M where
    M: ToChatRef
[src]

impl<C> CanUnbanChatMemberForChat for C where
    C: ToChatRef
[src]

impl<U> CanUnbanChatMemberForUser for U where
    U: ToUserId
[src]

impl<C> CanUnpinMessage for C where
    C: ToChatRef
[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]