Struct rust_tdlib::types::ChatPermissions
source · [−]pub struct ChatPermissions { /* private fields */ }
Expand description
Describes actions that a user is allowed to take in a chat
Implementations
sourceimpl ChatPermissions
impl ChatPermissions
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> ChatPermissionsBuilder
pub fn can_send_messages(&self) -> bool
pub fn can_send_media_messages(&self) -> bool
pub fn can_send_polls(&self) -> bool
pub fn can_send_other_messages(&self) -> bool
pub fn can_add_web_page_previews(&self) -> bool
pub fn can_change_info(&self) -> bool
pub fn can_invite_users(&self) -> bool
pub fn can_pin_messages(&self) -> bool
Trait Implementations
sourceimpl AsRef<ChatPermissions> for ChatPermissions
impl AsRef<ChatPermissions> for ChatPermissions
sourcefn as_ref(&self) -> &ChatPermissions
fn as_ref(&self) -> &ChatPermissions
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for ChatPermissions
impl Clone for ChatPermissions
sourcefn clone(&self) -> ChatPermissions
fn clone(&self) -> ChatPermissions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChatPermissions
impl Debug for ChatPermissions
sourceimpl Default for ChatPermissions
impl Default for ChatPermissions
sourcefn default() -> ChatPermissions
fn default() -> ChatPermissions
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ChatPermissions
impl<'de> Deserialize<'de> for ChatPermissions
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for ChatPermissions
impl Serialize for ChatPermissions
Auto Trait Implementations
impl RefUnwindSafe for ChatPermissions
impl Send for ChatPermissions
impl Sync for ChatPermissions
impl Unpin for ChatPermissions
impl UnwindSafe for ChatPermissions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more