[−][src]Enum tbot::types::chat::member::Status
Represents the status of a member.
Variants (Non-exhaustive)
The user is the creator of the chat.
The user is an administrator of the chat.
Fields of Administrator
custom_title: Option<String>
Custom title of the admin.
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: Option<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.
Implementations
impl Status
[src]
pub fn is_creator(&self) -> bool
[src]
Returns true
if self
is of variant Creator
.
pub fn is_administrator(&self) -> bool
[src]
Returns true
if self
is of variant Administrator
.
pub fn is_member(&self) -> bool
[src]
Returns true
if self
is of variant Member
.
pub fn is_restricted(&self) -> bool
[src]
Returns true
if self
is of variant Restricted
.
pub fn is_left(&self) -> bool
[src]
Returns true
if self
is of variant Left
.
pub fn is_kicked(&self) -> bool
[src]
Returns true
if self
is of variant Kicked
.
Trait Implementations
impl Clone for Status
[src]
impl Debug for Status
[src]
impl Eq 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 PartialEq<Status> for Status
[src]
impl StructuralEq for Status
[src]
impl StructuralPartialEq for Status
[src]
Auto Trait Implementations
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
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, 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<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,