[][src]Trait telegram_bot::types::ToUserId

pub trait ToUserId {
    pub fn to_user_id(&self) -> UserId;
}

Get UserId from the type reference.

Required methods

pub fn to_user_id(&self) -> UserId[src]

Loading content...

Implementors

impl ToUserId for ChatMember[src]

impl ToUserId for User[src]

impl ToUserId for UserId[src]

impl<S> ToUserId for S where
    S: Deref,
    <S as Deref>::Target: ToUserId
[src]

Loading content...