pub struct BusinessMessagesDeletedBuilder {
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: StringUnique 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 BusinessMessagesDeletedBuilder
impl BusinessMessagesDeletedBuilder
pub fn new<A: Into<Chat>>( business_connection_id: String, chat: A, message_ids: Vec<i64>, ) -> Self
Sourcepub fn set_business_connection_id(self, business_connection_id: String) -> Self
pub fn set_business_connection_id(self, business_connection_id: String) -> Self
Unique identifier of the business connection
Sourcepub fn set_chat(self, chat: Chat) -> Self
pub fn set_chat(self, chat: Chat) -> Self
Information about a chat in the business account. The bot may not have access to the chat or the corresponding user.
Sourcepub fn set_message_ids(self, message_ids: Vec<i64>) -> Self
pub fn set_message_ids(self, message_ids: Vec<i64>) -> Self
The list of identifiers of deleted messages in the chat of the business account
pub fn build(self) -> BusinessMessagesDeleted
Trait Implementations§
Source§impl Clone for BusinessMessagesDeletedBuilder
impl Clone for BusinessMessagesDeletedBuilder
Source§fn clone(&self) -> BusinessMessagesDeletedBuilder
fn clone(&self) -> BusinessMessagesDeletedBuilder
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 Default for BusinessMessagesDeletedBuilder
impl Default for BusinessMessagesDeletedBuilder
Source§fn default() -> BusinessMessagesDeletedBuilder
fn default() -> BusinessMessagesDeletedBuilder
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BusinessMessagesDeletedBuilder
impl<'de> Deserialize<'de> for BusinessMessagesDeletedBuilder
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
Source§impl Ord for BusinessMessagesDeletedBuilder
impl Ord for BusinessMessagesDeletedBuilder
Source§fn cmp(&self, other: &BusinessMessagesDeletedBuilder) -> Ordering
fn cmp(&self, other: &BusinessMessagesDeletedBuilder) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BusinessMessagesDeletedBuilder
impl PartialEq for BusinessMessagesDeletedBuilder
Source§fn eq(&self, other: &BusinessMessagesDeletedBuilder) -> bool
fn eq(&self, other: &BusinessMessagesDeletedBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BusinessMessagesDeletedBuilder
impl PartialOrd for BusinessMessagesDeletedBuilder
impl Eq for BusinessMessagesDeletedBuilder
impl StructuralPartialEq for BusinessMessagesDeletedBuilder
Auto Trait Implementations§
impl Freeze for BusinessMessagesDeletedBuilder
impl RefUnwindSafe for BusinessMessagesDeletedBuilder
impl Send for BusinessMessagesDeletedBuilder
impl Sync for BusinessMessagesDeletedBuilder
impl Unpin for BusinessMessagesDeletedBuilder
impl UnsafeUnpin for BusinessMessagesDeletedBuilder
impl UnwindSafe for BusinessMessagesDeletedBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.