[−][src]Enum tbot::types::chat::member::Status
Represents the status of a member.
Variants
The user is the creator of the chat.
The user is an administrator of the chat.
Fields of Administator
can_be_edited: bool
true
if the bot can edit this admin's rights.
can_change_info: bool
true
if the admin can change the group's info.
can_post_messages: Option<bool>
true
if the admin can post messages (channels only).
can_edit_messages: Option<bool>
true
if the admin can edit messages (channels only).
can_delete_messages: bool
true
if the admin can delete messages.
can_invite_users: bool
true
if the admin can invite users.
can_restrict_members: bool
true
if the admin can restruct users.
can_pin_messages: bool
true
if the admin can pin messages.
can_promote_members: bool
true
if the admin can promote members.
The user is a member of the chat.
The user is restricted in the chat.
Fields of Restricted
until_date: Option<i64>
Time when the restriction will be lifted.
is_member: bool
true
if the user is a member of the chat.
can_send_mesages: bool
true
if the user can send messages.
can_send_media_messages: bool
true
if the user can send media messages.
can_send_other_messages: bool
true
if the user can send other messages, such as games.
can_add_web_page_previews: bool
true
if the user can send messages with link previews.
can_send_polls: bool
true
if the user can send polls.
can_change_info: bool
true
if the user can change the group's info.
can_invite_users: bool
true
if the user can invite users.
can_pin_messages: bool
true
if the user can pin messages.
The user left the chat.
The user was kicked out of the chat.
Methods
impl Status
[src]
pub fn is_creator(&self) -> bool
[src]
Checks if self
is Creator
.
pub fn is_administator(&self) -> bool
[src]
Checks if self
is Administrator
.
pub fn is_member(&self) -> bool
[src]
Checks if self
is Member
.
pub fn is_restricted(&self) -> bool
[src]
Checks if self
is Restricted
.
pub fn is_left(&self) -> bool
[src]
Checks if self
is Left
.
pub fn is_kicked(&self) -> bool
[src]
Checks if self
is Kicked
.
Trait Implementations
impl Eq for Status
[src]
impl Clone for Status
[src]
impl PartialEq<Status> for Status
[src]
impl Copy for Status
[src]
impl Hash for Status
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Debug for Status
[src]
Auto Trait Implementations
impl Send for Status
impl Unpin for Status
impl Sync for Status
impl UnwindSafe for Status
impl RefUnwindSafe for Status
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,