Struct telexide::model::ChatPermissions [−][src]
pub struct ChatPermissions { pub can_send_messages: bool, pub can_send_media_messages: bool, pub can_send_polls: 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, }
Describes actions that a non-administrator user is allowed to take in a chat.
Fields
can_send_messages: bool
True, if the user is allowed to send text messages, contacts, locations and venues.
can_send_media_messages: bool
True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages to be true.
can_send_polls: bool
True, if the user is allowed to send polls, implies can_send_messages to be true.
can_send_other_messages: bool
True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages to be true.
can_add_web_page_previews: bool
True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages to be true.
can_change_info: bool
True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups.
can_invite_users: bool
True, if the user is allowed to invite new users to the chat.
can_pin_messages: bool
True, if the user is allowed to pin messages. Ignored in public supergroups.
Trait Implementations
impl Clone for ChatPermissions
[src]
impl Clone for ChatPermissions
[src]fn clone(&self) -> ChatPermissions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for ChatPermissions
[src]
impl<'de> Deserialize<'de> for ChatPermissions
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<ChatPermissions> for ChatPermissions
[src]
impl PartialEq<ChatPermissions> for ChatPermissions
[src]fn eq(&self, other: &ChatPermissions) -> bool
[src]
fn ne(&self, other: &ChatPermissions) -> bool
[src]
impl Serialize for ChatPermissions
[src]
impl Serialize for ChatPermissions
[src]impl StructuralPartialEq for ChatPermissions
[src]
impl StructuralPartialEq for ChatPermissions
[src]Auto Trait Implementations
impl RefUnwindSafe for ChatPermissions
impl RefUnwindSafe for ChatPermissions
impl Send for ChatPermissions
impl Send for ChatPermissions
impl Sync for ChatPermissions
impl Sync for ChatPermissions
impl Unpin for ChatPermissions
impl Unpin for ChatPermissions
impl UnwindSafe for ChatPermissions
impl UnwindSafe for ChatPermissions
Blanket Implementations
impl<T> CloneAny for T where
T: Any + Clone,
[src]
impl<T> CloneAny for T where
T: Any + Clone,
[src]pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
[src]
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
[src]
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
[src]
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
[src]
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,