Struct carapax::types::BusinessMessagesDeleted
source · pub struct BusinessMessagesDeleted {
pub business_connection_id: String,
pub chat: Chat,
pub message_ids: Vec<i64>,
}
Expand description
Provides information about messages deleted from a connected business account.
Fields§
§business_connection_id: String
Unique identifier of the business connection.
chat: 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>
A list of identifiers of deleted messages in the chat of the business account.
Implementations§
source§impl BusinessMessagesDeleted
impl BusinessMessagesDeleted
sourcepub fn new<A, B, C>(
business_connection_id: A,
chat: B,
message_ids: C
) -> BusinessMessagesDeleted
pub fn new<A, B, C>( business_connection_id: A, chat: B, message_ids: C ) -> BusinessMessagesDeleted
Creates a new BusinessMessagesDeleted
.
§Arguments
business_connection_id
- Unique identifier of the business connection.chat
- Information about a chat in the business account.message_ids
- A 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
Returns a copy 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 BusinessMessagesDeleted
impl Debug for BusinessMessagesDeleted
source§impl<'de> Deserialize<'de> for BusinessMessagesDeleted
impl<'de> Deserialize<'de> for BusinessMessagesDeleted
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<BusinessMessagesDeleted, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<BusinessMessagesDeleted, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for BusinessMessagesDeleted
impl PartialEq for BusinessMessagesDeleted
source§fn eq(&self, other: &BusinessMessagesDeleted) -> bool
fn eq(&self, other: &BusinessMessagesDeleted) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BusinessMessagesDeleted
impl Serialize for BusinessMessagesDeleted
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFrom<Update> for BusinessMessagesDeleted
impl TryFrom<Update> for BusinessMessagesDeleted
§type Error = UnexpectedUpdate
type Error = UnexpectedUpdate
The type returned in the event of a conversion error.
source§fn try_from(
value: Update
) -> Result<BusinessMessagesDeleted, <BusinessMessagesDeleted as TryFrom<Update>>::Error>
fn try_from( value: Update ) -> Result<BusinessMessagesDeleted, <BusinessMessagesDeleted as TryFrom<Update>>::Error>
Performs the conversion.
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
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more