pub struct Restricted {
pub until_date: UntilDate,
pub is_member: bool,
pub can_send_messages: bool,
pub can_send_media_messages: bool,
pub can_send_other_messages: bool,
pub can_add_web_page_previews: bool,
pub can_change_info: bool,
pub can_invite_users: bool,
pub can_pin_messages: bool,
pub can_manage_topics: bool,
pub can_send_polls: bool,
}Expand description
User, restricted in the group. This struct is part of the ChatMemberKind
enum.
Fields§
§until_date: UntilDateDate when restrictions will be lifted for this user.
is_member: booltrue if the user is a member of the chat at the moment of the request.
can_send_messages: booltrue if the user can send text messages, contacts, locations and
venues.
can_send_media_messages: booltrue if the user is allowed to send audios, documents, photos, videos,
video notes and voice notes.
can_send_other_messages: booltrue if the user is allowed to send animations, games, stickers and
use inline bots.
can_add_web_page_previews: booltrue if the user is allowed to add web page previews to their
messages.
can_change_info: booltrue if the user is allowed to change the chat title, photo
and other settings.
can_invite_users: booltrue if the user is allowed to invite new users to the chat.
can_pin_messages: booltrue if the user is allowed to pin messages.
can_manage_topics: booltrue, if the user is allowed to create, rename, close, and reopen
forum topics
can_send_polls: booltrue if the user is allowed to send polls.
Trait Implementations§
Source§impl Clone for Restricted
impl Clone for Restricted
Source§fn clone(&self) -> Restricted
fn clone(&self) -> Restricted
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Restricted
impl Debug for Restricted
Source§impl<'de> Deserialize<'de> for Restricted
impl<'de> Deserialize<'de> for Restricted
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Hash for Restricted
impl Hash for Restricted
Source§impl PartialEq for Restricted
impl PartialEq for Restricted
Source§impl Serialize for Restricted
impl Serialize for Restricted
impl Eq for Restricted
impl StructuralPartialEq for Restricted
Auto Trait Implementations§
impl Freeze for Restricted
impl RefUnwindSafe for Restricted
impl Send for Restricted
impl Sync for Restricted
impl Unpin for Restricted
impl UnwindSafe for Restricted
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more