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