pub struct UpdateChatHasProtectedContent {
pub chat_id: i64,
pub has_protected_content: bool,
}
Expand description
A chat content was allowed or restricted for saving
Fields§
§chat_id: i64
Chat identifier
has_protected_content: bool
New value of has_protected_content
Trait Implementations§
Source§impl Clone for UpdateChatHasProtectedContent
impl Clone for UpdateChatHasProtectedContent
Source§fn clone(&self) -> UpdateChatHasProtectedContent
fn clone(&self) -> UpdateChatHasProtectedContent
Returns a duplicate 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 UpdateChatHasProtectedContent
impl Default for UpdateChatHasProtectedContent
Source§fn default() -> UpdateChatHasProtectedContent
fn default() -> UpdateChatHasProtectedContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateChatHasProtectedContent
impl<'de> Deserialize<'de> for UpdateChatHasProtectedContent
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
Source§impl PartialEq for UpdateChatHasProtectedContent
impl PartialEq for UpdateChatHasProtectedContent
Source§fn eq(&self, other: &UpdateChatHasProtectedContent) -> bool
fn eq(&self, other: &UpdateChatHasProtectedContent) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for UpdateChatHasProtectedContent
Auto Trait Implementations§
impl Freeze for UpdateChatHasProtectedContent
impl RefUnwindSafe for UpdateChatHasProtectedContent
impl Send for UpdateChatHasProtectedContent
impl Sync for UpdateChatHasProtectedContent
impl Unpin for UpdateChatHasProtectedContent
impl UnwindSafe for UpdateChatHasProtectedContent
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