[−][src]Struct telegram_bot::types::User
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<C> CanExportChatInviteLink for C where
C: ToChatRef,
[src][+]
C: ToChatRef,
impl<C> CanGetChat for C where
C: ToChatRef,
[src][+]
C: ToChatRef,
impl<C> CanGetChatAdministrators for C where
C: ToChatRef,
[src][+]
C: ToChatRef,
impl<C> CanGetChatMemberForChat for C where
C: ToChatRef,
[src][+]
C: ToChatRef,
impl<U> CanGetChatMemberForUser for U where
U: ToUserId,
[src][+]
U: ToUserId,
impl<C> CanGetChatMembersCount for C where
C: ToChatRef,
[src][+]
C: ToChatRef,
impl<'b, U> CanGetUserProfilePhotos for U where
U: ToUserId,
[src][+]
U: ToUserId,
impl<C> CanKickChatMemberForChat for C where
C: ToChatRef,
[src][+]
C: ToChatRef,
impl<U> CanKickChatMemberForUser for U where
U: ToUserId,
[src][+]
U: ToUserId,
impl<C> CanLeaveChat for C where
C: ToChatRef,
[src][+]
C: ToChatRef,
impl<M> CanSendAudio for M where
M: ToChatRef,
[src][+]
M: ToChatRef,
impl<C> CanSendChatAction for C where
C: ToChatRef,
[src][+]
C: ToChatRef,
impl<'p, 'f, 'l, C> CanSendContact<'p, 'f, 'l> for C where
C: ToChatRef,
[src][+]
C: ToChatRef,
impl<M> CanSendDocument for M where
M: ToChatRef,
[src][+]
M: ToChatRef,
impl<C> CanSendLocation for C where
C: ToChatRef,
[src][+]
C: ToChatRef,
impl<C> CanSendMessage for C where
C: ToChatRef,
[src][+]
C: ToChatRef,
impl<M> CanSendPhoto for M where
M: ToChatRef,
[src][+]
M: ToChatRef,
impl<C> CanSendPoll for C where
C: ToChatRef,
[src][+]
C: ToChatRef,
impl<'t, 'a, 'f, C> CanSendVenue<'t, 'a, 'f> for C where
C: ToChatRef,
[src][+]
C: ToChatRef,
impl<M> CanSendVideo for M where
M: ToChatRef,
[src][+]
M: ToChatRef,
impl<C> CanUnbanChatMemberForChat for C where
C: ToChatRef,
[src][+]
C: ToChatRef,
impl<U> CanUnbanChatMemberForUser for U where
U: ToUserId,
[src][+]
U: ToUserId,
impl<C> CanUnpinMessage for C where
C: ToChatRef,
[src][+]
C: ToChatRef,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,