pub struct Restricted {Show 19 fields
pub tag: Option<String>,
pub until_date: UntilDate,
pub is_member: bool,
pub can_send_messages: bool,
pub can_send_audios: bool,
pub can_send_documents: bool,
pub can_send_photos: bool,
pub can_send_videos: bool,
pub can_send_video_notes: bool,
pub can_send_voice_notes: 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,
pub can_edit_tag: bool,
pub can_react_to_messages: bool,
}Expand description
User, restricted in the group. This struct is part of the ChatMemberKind
enum.
Fields§
§tag: Option<String>Tag of the member
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_audios: booltrue if the user can send audios.
can_send_documents: booltrue if the user can send documents.
can_send_photos: booltrue if the user can send photos.
can_send_videos: booltrue if the user can send videos.
can_send_video_notes: booltrue if the user can send video notes.
can_send_voice_notes: booltrue if the user can send 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.
can_edit_tag: booltrue if the user is allowed to edit their own tag.
can_react_to_messages: booltrue if the user is allowed to react to messages.
Trait Implementations§
Source§impl Clone for Restricted
impl Clone for Restricted
Source§fn clone(&self) -> Restricted
fn clone(&self) -> Restricted
1.0.0 (const: unstable) · 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<Restricted, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Restricted, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for Restricted
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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for Restricted
Auto Trait Implementations§
impl Forget for Restricted
impl Freeze for Restricted
impl RefUnwindSafe for Restricted
impl Send for Restricted
impl Sync for Restricted
impl Unpin for Restricted
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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