[−][src]Struct telegram_bot::types::UserId
Unique user identifier.
Implementations
impl UserId
[src]
Trait Implementations
impl Clone for UserId
[src]
impl Copy for UserId
[src]
impl Debug for UserId
[src]
impl<'de> Deserialize<'de> for UserId
[src]
pub fn deserialize<D>(
deserializer: D
) -> Result<UserId, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<UserId, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Display for UserId
[src]
impl Eq for UserId
[src]
impl From<UserId> for ChatId
[src]
impl From<i64> for UserId
[src]
impl Hash for UserId
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for UserId
[src]
pub fn cmp(&self, other: &UserId) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<UserId> for UserId
[src]
impl PartialOrd<UserId> for UserId
[src]
pub fn partial_cmp(&self, other: &UserId) -> Option<Ordering>
[src]
pub fn lt(&self, other: &UserId) -> bool
[src]
pub fn le(&self, other: &UserId) -> bool
[src]
pub fn gt(&self, other: &UserId) -> bool
[src]
pub fn ge(&self, other: &UserId) -> bool
[src]
impl Serialize for UserId
[src]
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl StructuralEq for UserId
[src]
impl StructuralPartialEq for UserId
[src]
impl ToChatRef for UserId
[src]
pub fn to_chat_ref(&self) -> ChatRef
[src]
impl ToUserId for UserId
[src]
pub fn to_user_id(&self) -> UserId
[src]
Auto Trait Implementations
impl RefUnwindSafe for UserId
[src]
impl Send for UserId
[src]
impl Sync for UserId
[src]
impl Unpin for UserId
[src]
impl UnwindSafe for UserId
[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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<C> CanExportChatInviteLink for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn export_invite_link(&self) -> ExportChatInviteLink
[src]
impl<C> CanGetChat for C where
C: ToChatRef,
[src]
C: ToChatRef,
impl<C> CanGetChatAdministrators for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn get_administrators(&self) -> GetChatAdministrators
[src]
impl<C> CanGetChatMemberForChat for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn get_member<O>(&self, other: O) -> GetChatMember where
O: ToUserId,
[src]
O: ToUserId,
impl<U> CanGetChatMemberForUser for U where
U: ToUserId,
[src]
U: ToUserId,
pub fn get_member_from<O>(&self, other: O) -> GetChatMember where
O: ToChatRef,
[src]
O: ToChatRef,
impl<C> CanGetChatMembersCount for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn get_members_count(&self) -> GetChatMembersCount
[src]
impl<'b, U> CanGetUserProfilePhotos for U where
U: ToUserId,
[src]
U: ToUserId,
pub fn get_user_profile_photos(&self) -> GetUserProfilePhotos
[src]
impl<C> CanKickChatMemberForChat for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn kick<O>(&self, other: O) -> KickChatMember where
O: ToUserId,
[src]
O: ToUserId,
impl<U> CanKickChatMemberForUser for U where
U: ToUserId,
[src]
U: ToUserId,
pub fn kick_from<O>(&self, other: O) -> KickChatMember where
O: ToChatRef,
[src]
O: ToChatRef,
impl<C> CanLeaveChat for C where
C: ToChatRef,
[src]
C: ToChatRef,
impl<M> CanSendAudio for M where
M: ToChatRef,
[src]
M: ToChatRef,
pub fn audio<'c, 'p, 't, T>(&self, audio: T) -> SendAudio<'c, 'p, 't> where
T: Into<InputFile>,
[src]
T: Into<InputFile>,
impl<C> CanSendChatAction for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn chat_action(&self, action: ChatAction) -> SendChatAction
[src]
impl<'p, 'f, 'l, C> CanSendContact<'p, 'f, 'l> for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn contact<P, F>(
&self,
phone_number: P,
first_name: F
) -> SendContact<'p, 'f, 'l> where
P: Into<Cow<'p, str>>,
F: Into<Cow<'f, str>>,
[src]
&self,
phone_number: P,
first_name: F
) -> SendContact<'p, 'f, 'l> where
P: Into<Cow<'p, str>>,
F: Into<Cow<'f, str>>,
impl<M> CanSendDocument for M where
M: ToChatRef,
[src]
M: ToChatRef,
pub fn document<'c, T>(&self, document: T) -> SendDocument<'c> where
T: Into<InputFile>,
[src]
T: Into<InputFile>,
impl<C> CanSendLocation for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn location(&self, latitude: f32, longitude: f32) -> SendLocation
[src]
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,
pub fn poll<'q, 'o, 'e, Q, O>(
&self,
question: Q,
options: Vec<O, Global>
) -> SendPoll<'q, 'o, 'e> where
O: Into<Cow<'o, str>>,
Q: Into<Cow<'q, str>>,
[src]
&self,
question: Q,
options: Vec<O, Global>
) -> SendPoll<'q, 'o, 'e> where
O: Into<Cow<'o, str>>,
Q: Into<Cow<'q, str>>,
impl<'t, 'a, 'f, C> CanSendVenue<'t, 'a, 'f> for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn venue<T, A>(
&self,
latitude: f32,
longitude: f32,
title: T,
address: A
) -> SendVenue<'t, 'a, 'f> where
T: Into<Cow<'t, str>>,
A: Into<Cow<'a, str>>,
[src]
&self,
latitude: f32,
longitude: f32,
title: T,
address: A
) -> SendVenue<'t, 'a, 'f> where
T: Into<Cow<'t, str>>,
A: Into<Cow<'a, str>>,
impl<M> CanSendVideo for M where
M: ToChatRef,
[src]
M: ToChatRef,
impl<C> CanUnbanChatMemberForChat for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn unban<O>(&self, other: O) -> UnbanChatMember where
O: ToUserId,
[src]
O: ToUserId,
impl<U> CanUnbanChatMemberForUser for U where
U: ToUserId,
[src]
U: ToUserId,
pub fn unban_in<O>(&self, other: O) -> UnbanChatMember where
O: ToChatRef,
[src]
O: ToChatRef,
impl<C> CanUnpinMessage for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn unpin_message(&self) -> UnpinChatMessage
[src]
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]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,