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
Auto Trait Implementations§
impl Freeze for TransferChatOwnership
impl RefUnwindSafe for TransferChatOwnership
impl Send for TransferChatOwnership
impl Sync for TransferChatOwnership
impl Unpin for TransferChatOwnership
impl UnwindSafe for TransferChatOwnership
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