pub enum SuggestedAction {
CheckPassword(SuggestedActionCheckPassword),
CheckPhoneNumber(SuggestedActionCheckPhoneNumber),
ConvertToBroadcastGroup(SuggestedActionConvertToBroadcastGroup),
EnableArchiveAndMuteNewChats(SuggestedActionEnableArchiveAndMuteNewChats),
SetPassword(SuggestedActionSetPassword),
ViewChecksHint(SuggestedActionViewChecksHint),
// some variants omitted
}
Expand description
Describes an action suggested to the current user
Variants§
CheckPassword(SuggestedActionCheckPassword)
Suggests the user to check whether they still remember their 2-step verification password
CheckPhoneNumber(SuggestedActionCheckPhoneNumber)
Suggests the user to check whether authorization phone number is correct and change the phone number if it is inaccessible
ConvertToBroadcastGroup(SuggestedActionConvertToBroadcastGroup)
Suggests the user to convert specified supergroup to a broadcast group
EnableArchiveAndMuteNewChats(SuggestedActionEnableArchiveAndMuteNewChats)
Suggests the user to enable “archive_and_mute_new_chats_from_unknown_users” option
SetPassword(SuggestedActionSetPassword)
Suggests the user to set a 2-step verification password to be able to log in again
ViewChecksHint(SuggestedActionViewChecksHint)
Suggests the user to view a hint about the meaning of one and two check marks on sent messages
Implementations§
Trait Implementations§
Source§impl AsRef<SuggestedAction> for SuggestedAction
impl AsRef<SuggestedAction> for SuggestedAction
Source§fn as_ref(&self) -> &SuggestedAction
fn as_ref(&self) -> &SuggestedAction
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for SuggestedAction
impl Clone for SuggestedAction
Source§fn clone(&self) -> SuggestedAction
fn clone(&self) -> SuggestedAction
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 SuggestedAction
impl Debug for SuggestedAction
Source§impl Default for SuggestedAction
impl Default for SuggestedAction
Source§fn default() -> SuggestedAction
fn default() -> SuggestedAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SuggestedAction
impl<'de> Deserialize<'de> for SuggestedAction
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 SuggestedAction
impl RefUnwindSafe for SuggestedAction
impl Send for SuggestedAction
impl Sync for SuggestedAction
impl Unpin for SuggestedAction
impl UnwindSafe for SuggestedAction
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