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
sourceimpl AsRef<CanTransferOwnershipResult> for CanTransferOwnershipResult
impl AsRef<CanTransferOwnershipResult> for CanTransferOwnershipResult
sourcefn as_ref(&self) -> &CanTransferOwnershipResult
fn as_ref(&self) -> &CanTransferOwnershipResult
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for CanTransferOwnershipResult
impl Clone for CanTransferOwnershipResult
sourcefn clone(&self) -> CanTransferOwnershipResult
fn clone(&self) -> CanTransferOwnershipResult
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 CanTransferOwnershipResult
impl Debug for CanTransferOwnershipResult
sourceimpl Default for CanTransferOwnershipResult
impl Default for CanTransferOwnershipResult
sourceimpl<'de> Deserialize<'de> for CanTransferOwnershipResult
impl<'de> Deserialize<'de> for CanTransferOwnershipResult
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
Auto Trait Implementations
impl RefUnwindSafe for CanTransferOwnershipResult
impl Send for CanTransferOwnershipResult
impl Sync for CanTransferOwnershipResult
impl Unpin for CanTransferOwnershipResult
impl UnwindSafe for CanTransferOwnershipResult
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