pub struct SetChatMessageTtl { /* private fields */ }
Expand description
Changes the message TTL in a chat. Requires can_delete_messages administrator right in basic groups, supergroups and channels Message TTL can’t be changed in a chat with the current user (Saved Messages) and the chat 777000 (Telegram)
Implementations§
Trait Implementations§
Source§impl AsRef<SetChatMessageTtl> for SetChatMessageTtl
impl AsRef<SetChatMessageTtl> for SetChatMessageTtl
Source§fn as_ref(&self) -> &SetChatMessageTtl
fn as_ref(&self) -> &SetChatMessageTtl
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for SetChatMessageTtl
impl Clone for SetChatMessageTtl
Source§fn clone(&self) -> SetChatMessageTtl
fn clone(&self) -> SetChatMessageTtl
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 Debug for SetChatMessageTtl
impl Debug for SetChatMessageTtl
Source§impl Default for SetChatMessageTtl
impl Default for SetChatMessageTtl
Source§fn default() -> SetChatMessageTtl
fn default() -> SetChatMessageTtl
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SetChatMessageTtl
impl<'de> Deserialize<'de> for SetChatMessageTtl
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 SetChatMessageTtl
impl RefUnwindSafe for SetChatMessageTtl
impl Send for SetChatMessageTtl
impl Sync for SetChatMessageTtl
impl Unpin for SetChatMessageTtl
impl UnwindSafe for SetChatMessageTtl
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