Enum rust_tdlib::types::CanTransferOwnershipResult [−][src]
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
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
Performs the conversion.
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]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
Mutably borrows from an owned value. Read more