Struct botapi::gen_types::BusinessMessagesDeleted
source · pub struct BusinessMessagesDeleted {
pub business_connection_id: String,
pub chat: BoxWrapper<Unbox<Chat>>,
pub message_ids: Vec<i64>,
}
Expand description
This object is received when messages are deleted from a connected business account.
Fields§
§business_connection_id: String
Unique identifier of the business connection
chat: BoxWrapper<Unbox<Chat>>
Information about a chat in the business account. The bot may not have access to the chat or the corresponding user.
message_ids: Vec<i64>
The list of identifiers of deleted messages in the chat of the business account
Implementations§
source§impl BusinessMessagesDeleted
impl BusinessMessagesDeleted
pub fn noskip(self) -> NoSkipBusinessMessagesDeleted
source§impl BusinessMessagesDeleted
impl BusinessMessagesDeleted
pub fn new<A: Into<Chat>>( business_connection_id: String, chat: A, message_ids: Vec<i64>, ) -> Self
sourcepub fn get_business_connection_id<'a>(&'a self) -> &'a str
pub fn get_business_connection_id<'a>(&'a self) -> &'a str
Unique identifier of the business connection
sourcepub fn set_business_connection_id<'a>(
&'a mut self,
business_connection_id: String,
) -> &'a mut Self
pub fn set_business_connection_id<'a>( &'a mut self, business_connection_id: String, ) -> &'a mut Self
Unique identifier of the business connection
sourcepub fn get_chat<'a>(&'a self) -> &'a Chat
pub fn get_chat<'a>(&'a self) -> &'a Chat
Information about a chat in the business account. The bot may not have access to the chat or the corresponding user.
sourcepub fn set_chat<'a>(&'a mut self, chat: Chat) -> &'a mut Self
pub fn set_chat<'a>(&'a mut self, chat: Chat) -> &'a mut Self
Information about a chat in the business account. The bot may not have access to the chat or the corresponding user.
sourcepub fn get_message_ids<'a>(&'a self) -> &'a Vec<i64>
pub fn get_message_ids<'a>(&'a self) -> &'a Vec<i64>
The list of identifiers of deleted messages in the chat of the business account
sourcepub fn set_message_ids<'a>(&'a mut self, message_ids: Vec<i64>) -> &'a mut Self
pub fn set_message_ids<'a>(&'a mut self, message_ids: Vec<i64>) -> &'a mut Self
The list of identifiers of deleted messages in the chat of the business account
Trait Implementations§
source§impl Clone for BusinessMessagesDeleted
impl Clone for BusinessMessagesDeleted
source§fn clone(&self) -> BusinessMessagesDeleted
fn clone(&self) -> BusinessMessagesDeleted
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BusinessMessagesDeleted
impl Debug for BusinessMessagesDeleted
source§impl Default for BusinessMessagesDeleted
impl Default for BusinessMessagesDeleted
source§fn default() -> BusinessMessagesDeleted
fn default() -> BusinessMessagesDeleted
source§impl<'de> Deserialize<'de> for BusinessMessagesDeleted
impl<'de> Deserialize<'de> for BusinessMessagesDeleted
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>,
source§impl From<BoxWrapper<Box<BusinessMessagesDeleted>>> for BusinessMessagesDeleted
impl From<BoxWrapper<Box<BusinessMessagesDeleted>>> for BusinessMessagesDeleted
source§fn from(t: BoxWrapper<Box<BusinessMessagesDeleted>>) -> Self
fn from(t: BoxWrapper<Box<BusinessMessagesDeleted>>) -> Self
source§impl From<BoxWrapper<Unbox<BusinessMessagesDeleted>>> for BusinessMessagesDeleted
impl From<BoxWrapper<Unbox<BusinessMessagesDeleted>>> for BusinessMessagesDeleted
source§fn from(t: BoxWrapper<Unbox<BusinessMessagesDeleted>>) -> Self
fn from(t: BoxWrapper<Unbox<BusinessMessagesDeleted>>) -> Self
source§impl From<NoSkipBusinessMessagesDeleted> for BusinessMessagesDeleted
impl From<NoSkipBusinessMessagesDeleted> for BusinessMessagesDeleted
source§fn from(t: NoSkipBusinessMessagesDeleted) -> Self
fn from(t: NoSkipBusinessMessagesDeleted) -> Self
source§impl Hash for BusinessMessagesDeleted
impl Hash for BusinessMessagesDeleted
source§impl Into<NoSkipBusinessMessagesDeleted> for BusinessMessagesDeleted
impl Into<NoSkipBusinessMessagesDeleted> for BusinessMessagesDeleted
source§fn into(self) -> NoSkipBusinessMessagesDeleted
fn into(self) -> NoSkipBusinessMessagesDeleted
source§impl Ord for BusinessMessagesDeleted
impl Ord for BusinessMessagesDeleted
source§fn cmp(&self, other: &BusinessMessagesDeleted) -> Ordering
fn cmp(&self, other: &BusinessMessagesDeleted) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for BusinessMessagesDeleted
impl PartialEq for BusinessMessagesDeleted
source§fn eq(&self, other: &BusinessMessagesDeleted) -> bool
fn eq(&self, other: &BusinessMessagesDeleted) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BusinessMessagesDeleted
impl PartialOrd for BusinessMessagesDeleted
source§fn partial_cmp(&self, other: &BusinessMessagesDeleted) -> Option<Ordering>
fn partial_cmp(&self, other: &BusinessMessagesDeleted) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for BusinessMessagesDeleted
impl Serialize for BusinessMessagesDeleted
impl Eq for BusinessMessagesDeleted
impl StructuralPartialEq for BusinessMessagesDeleted
Auto Trait Implementations§
impl Freeze for BusinessMessagesDeleted
impl RefUnwindSafe for BusinessMessagesDeleted
impl Send for BusinessMessagesDeleted
impl Sync for BusinessMessagesDeleted
impl Unpin for BusinessMessagesDeleted
impl UnwindSafe for BusinessMessagesDeleted
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.