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
sourceimpl AsRef<TransferChatOwnership> for TransferChatOwnership
impl AsRef<TransferChatOwnership> for TransferChatOwnership
sourcefn as_ref(&self) -> &TransferChatOwnership
fn as_ref(&self) -> &TransferChatOwnership
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for TransferChatOwnership
impl Clone for TransferChatOwnership
sourcefn clone(&self) -> TransferChatOwnership
fn clone(&self) -> TransferChatOwnership
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TransferChatOwnership
impl Debug for TransferChatOwnership
sourceimpl Default for TransferChatOwnership
impl Default for TransferChatOwnership
sourcefn default() -> TransferChatOwnership
fn default() -> TransferChatOwnership
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TransferChatOwnership
impl<'de> Deserialize<'de> for TransferChatOwnership
sourcefn 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
sourceimpl Serialize for TransferChatOwnership
impl Serialize for TransferChatOwnership
Auto Trait Implementations
impl RefUnwindSafe for TransferChatOwnership
impl Send for TransferChatOwnership
impl Sync for TransferChatOwnership
impl Unpin for TransferChatOwnership
impl UnwindSafe for TransferChatOwnership
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more