Struct rust_tdlib::types::TransferChatOwnership
source · pub struct TransferChatOwnership { /* private fields */ }
Expand description
Changes the owner of a chat. The current user must be a current owner of the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session. Available only for supergroups and channel chats
Implementations§
Trait Implementations§
source§impl AsRef<TransferChatOwnership> for TransferChatOwnership
impl AsRef<TransferChatOwnership> for TransferChatOwnership
source§fn as_ref(&self) -> &TransferChatOwnership
fn as_ref(&self) -> &TransferChatOwnership
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for TransferChatOwnership
impl Clone for TransferChatOwnership
source§fn clone(&self) -> TransferChatOwnership
fn clone(&self) -> TransferChatOwnership
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 TransferChatOwnership
impl Debug for TransferChatOwnership
source§impl Default for TransferChatOwnership
impl Default for TransferChatOwnership
source§fn default() -> TransferChatOwnership
fn default() -> TransferChatOwnership
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TransferChatOwnership
impl<'de> Deserialize<'de> for TransferChatOwnership
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