Enum rtdlib::types::SuggestedAction
source[−]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)
Tuple Fields
Suggests the user to check whether they still remember their 2-step verification password
CheckPhoneNumber(SuggestedActionCheckPhoneNumber)
Tuple Fields
Suggests the user to check whether authorization phone number is correct and change the phone number if it is inaccessible
ConvertToBroadcastGroup(SuggestedActionConvertToBroadcastGroup)
Tuple Fields
Suggests the user to convert specified supergroup to a broadcast group
EnableArchiveAndMuteNewChats(SuggestedActionEnableArchiveAndMuteNewChats)
Tuple Fields
Suggests the user to enable “archive_and_mute_new_chats_from_unknown_users” option
SetPassword(SuggestedActionSetPassword)
Tuple Fields
Suggests the user to set a 2-step verification password to be able to log in again
ViewChecksHint(SuggestedActionViewChecksHint)
Tuple Fields
Suggests the user to view a hint about the meaning of one and two check marks on sent messages
Implementations
pub fn on_check_phone_number<F: FnOnce(&SuggestedActionCheckPhoneNumber)>(
&self,
fnc: F
) -> &Self
pub fn on_convert_to_broadcast_group<F: FnOnce(&SuggestedActionConvertToBroadcastGroup)>(
&self,
fnc: F
) -> &Self
pub fn on_enable_archive_and_mute_new_chats<F: FnOnce(&SuggestedActionEnableArchiveAndMuteNewChats)>(
&self,
fnc: F
) -> &Self
pub fn on_view_checks_hint<F: FnOnce(&SuggestedActionViewChecksHint)>(
&self,
fnc: F
) -> &Self
pub fn as_convert_to_broadcast_group(
&self
) -> Option<&SuggestedActionConvertToBroadcastGroup>
pub fn as_enable_archive_and_mute_new_chats(
&self
) -> Option<&SuggestedActionEnableArchiveAndMuteNewChats>
pub fn convert_to_broadcast_group<T: AsRef<SuggestedActionConvertToBroadcastGroup>>(
t: T
) -> Self
pub fn enable_archive_and_mute_new_chats<T: AsRef<SuggestedActionEnableArchiveAndMuteNewChats>>(
t: T
) -> Self
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<SuggestedAction, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<SuggestedAction, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for SuggestedAction
impl Send for SuggestedAction
impl Sync for SuggestedAction
impl Unpin for SuggestedAction
impl UnwindSafe for SuggestedAction
Blanket Implementations
Mutably borrows from an owned value. Read more