Enum rust_tdlib::types::ChatActionBar
source · [−]pub enum ChatActionBar {
AddContact(ChatActionBarAddContact),
InviteMembers(ChatActionBarInviteMembers),
JoinRequest(ChatActionBarJoinRequest),
ReportAddBlock(ChatActionBarReportAddBlock),
ReportSpam(ChatActionBarReportSpam),
ReportUnrelatedLocation(ChatActionBarReportUnrelatedLocation),
SharePhoneNumber(ChatActionBarSharePhoneNumber),
// some variants omitted
}
Expand description
Describes actions which must be possible to do through a chat action bar
Variants
AddContact(ChatActionBarAddContact)
The chat is a private or secret chat and the other user can be added to the contact list using the method addContact
InviteMembers(ChatActionBarInviteMembers)
The chat is a recently created group chat to which new members can be invited
JoinRequest(ChatActionBarJoinRequest)
The chat is a private chat with an administrator of a chat to which the user sent join request
ReportAddBlock(ChatActionBarReportAddBlock)
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 toggleMessageSenderIsBlocked, or the other user can be added to the contact list using the method addContact
ReportSpam(ChatActionBarReportSpam)
The chat can be reported as spam using the method reportChat with the reason chatReportReasonSpam
ReportUnrelatedLocation(ChatActionBarReportUnrelatedLocation)
The chat is a location-based supergroup, which can be reported as having unrelated location using the method reportChat with the reason chatReportReasonUnrelatedLocation
SharePhoneNumber(ChatActionBarSharePhoneNumber)
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
sourceimpl AsRef<ChatActionBar> for ChatActionBar
impl AsRef<ChatActionBar> for ChatActionBar
sourcefn as_ref(&self) -> &ChatActionBar
fn as_ref(&self) -> &ChatActionBar
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for ChatActionBar
impl Clone for ChatActionBar
sourcefn clone(&self) -> ChatActionBar
fn clone(&self) -> ChatActionBar
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChatActionBar
impl Debug for ChatActionBar
sourceimpl Default for ChatActionBar
impl Default for ChatActionBar
sourceimpl<'de> Deserialize<'de> for ChatActionBar
impl<'de> Deserialize<'de> for ChatActionBar
sourcefn 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
sourceimpl Serialize for ChatActionBar
impl Serialize for ChatActionBar
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more