pub enum CanTransferOwnershipResult {
CanTransferOwnership(CanTransferOwnership),
Ok(CanTransferOwnershipResultOk),
PasswordNeeded(CanTransferOwnershipResultPasswordNeeded),
PasswordTooFresh(CanTransferOwnershipResultPasswordTooFresh),
SessionTooFresh(CanTransferOwnershipResultSessionTooFresh),
// some variants omitted
}
Expand description
Represents result of checking whether the current session can be used to transfer a chat ownership to another user
Variants§
CanTransferOwnership(CanTransferOwnership)
Checks whether the current session can be used to transfer a chat ownership to another user
Ok(CanTransferOwnershipResultOk)
The session can be used
PasswordNeeded(CanTransferOwnershipResultPasswordNeeded)
The 2-step verification needs to be enabled first
PasswordTooFresh(CanTransferOwnershipResultPasswordTooFresh)
The 2-step verification was enabled recently, user needs to wait
SessionTooFresh(CanTransferOwnershipResultSessionTooFresh)
The session was created recently, user needs to wait
Implementations§
Trait Implementations§
Source§impl AsRef<CanTransferOwnershipResult> for CanTransferOwnershipResult
impl AsRef<CanTransferOwnershipResult> for CanTransferOwnershipResult
Source§fn as_ref(&self) -> &CanTransferOwnershipResult
fn as_ref(&self) -> &CanTransferOwnershipResult
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for CanTransferOwnershipResult
impl Clone for CanTransferOwnershipResult
Source§fn clone(&self) -> CanTransferOwnershipResult
fn clone(&self) -> CanTransferOwnershipResult
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 CanTransferOwnershipResult
impl Debug for CanTransferOwnershipResult
Source§impl Default for CanTransferOwnershipResult
impl Default for CanTransferOwnershipResult
Source§fn default() -> CanTransferOwnershipResult
fn default() -> CanTransferOwnershipResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CanTransferOwnershipResult
impl<'de> Deserialize<'de> for CanTransferOwnershipResult
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 CanTransferOwnershipResult
impl RefUnwindSafe for CanTransferOwnershipResult
impl Send for CanTransferOwnershipResult
impl Sync for CanTransferOwnershipResult
impl Unpin for CanTransferOwnershipResult
impl UnwindSafe for CanTransferOwnershipResult
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