pub struct ToggleChatHasProtectedContent { /* private fields */ }
Expand description
Changes the ability of users to save, forward, or copy chat content. Supported only for basic groups, supergroups and channels. Requires owner privileges
Implementations§
Trait Implementations§
Source§impl AsRef<ToggleChatHasProtectedContent> for ToggleChatHasProtectedContent
impl AsRef<ToggleChatHasProtectedContent> for ToggleChatHasProtectedContent
Source§fn as_ref(&self) -> &ToggleChatHasProtectedContent
fn as_ref(&self) -> &ToggleChatHasProtectedContent
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ToggleChatHasProtectedContent
impl Clone for ToggleChatHasProtectedContent
Source§fn clone(&self) -> ToggleChatHasProtectedContent
fn clone(&self) -> ToggleChatHasProtectedContent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ToggleChatHasProtectedContent
impl Default for ToggleChatHasProtectedContent
Source§fn default() -> ToggleChatHasProtectedContent
fn default() -> ToggleChatHasProtectedContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToggleChatHasProtectedContent
impl<'de> Deserialize<'de> for ToggleChatHasProtectedContent
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ToggleChatHasProtectedContent
impl RefUnwindSafe for ToggleChatHasProtectedContent
impl Send for ToggleChatHasProtectedContent
impl Sync for ToggleChatHasProtectedContent
impl Unpin for ToggleChatHasProtectedContent
impl UnwindSafe for ToggleChatHasProtectedContent
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
Mutably borrows from an owned value. Read more