pub struct ChatActionBarReportAddBlock {
pub can_unarchive: bool,
pub distance: i32,
}
Expand description
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 setMessageSenderBlockList, or the other user can be added to the contact list using the method addContact. If the chat is a private chat with a user with an emoji status, then a notice about emoji status usage must be shown
Fields§
§can_unarchive: bool
If true, the chat was automatically archived and can be moved back to the main chat list using addChatToList simultaneously with setting chat notification settings to default using setChatNotificationSettings
distance: i32
If non-negative, the current user was found by the other user through searchChatsNearby and this is the distance between the users
Trait Implementations§
Source§impl Clone for ChatActionBarReportAddBlock
impl Clone for ChatActionBarReportAddBlock
Source§fn clone(&self) -> ChatActionBarReportAddBlock
fn clone(&self) -> ChatActionBarReportAddBlock
Returns a duplicate 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 ChatActionBarReportAddBlock
impl Debug for ChatActionBarReportAddBlock
Source§impl Default for ChatActionBarReportAddBlock
impl Default for ChatActionBarReportAddBlock
Source§fn default() -> ChatActionBarReportAddBlock
fn default() -> ChatActionBarReportAddBlock
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatActionBarReportAddBlock
impl<'de> Deserialize<'de> for ChatActionBarReportAddBlock
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
impl StructuralPartialEq for ChatActionBarReportAddBlock
Auto Trait Implementations§
impl Freeze for ChatActionBarReportAddBlock
impl RefUnwindSafe for ChatActionBarReportAddBlock
impl Send for ChatActionBarReportAddBlock
impl Sync for ChatActionBarReportAddBlock
impl Unpin for ChatActionBarReportAddBlock
impl UnwindSafe for ChatActionBarReportAddBlock
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