Enum rtdlib::types::ChatActionBar [−][src]
pub enum ChatActionBar {
AddContact(ChatActionBarAddContact),
ReportAddBlock(ChatActionBarReportAddBlock),
ReportSpam(ChatActionBarReportSpam),
ReportUnrelatedLocation(ChatActionBarReportUnrelatedLocation),
SharePhoneNumber(ChatActionBarSharePhoneNumber),
// some variants omitted
}
Expand description
Describes actions which should be possible to do through a chat action bar
Variants
The chat is a private or secret chat and the other user can be added to the contact list using the method addContact
Tuple Fields of AddContact
The chat is a private or secret chat, which can be reported using the method reportChat, or the other user can be blocked using the method blockUser, or the other user can be added to the contact list using the method addContact
Tuple Fields of ReportAddBlock
The chat can be reported as spam using the method reportChat with the reason chatReportReasonSpam
Tuple Fields of ReportSpam
The chat is a location-based supergroup, which can be reported as having unrelated location using the method reportChat with the reason chatReportReasonUnrelatedLocation
The chat is a private or secret chat with a mutual contact and the user’s phone number can be shared with the other user using the method sharePhoneNumber
Implementations
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<ChatActionBar, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<ChatActionBar, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ChatActionBar
impl Send for ChatActionBar
impl Sync for ChatActionBar
impl Unpin for ChatActionBar
impl UnwindSafe for ChatActionBar
Blanket Implementations
Mutably borrows from an owned value. Read more