Enum carapax::types::InputMessageContent
source · pub enum InputMessageContent {
Contact(InputMessageContentContact),
Invoice(InputMessageContentInvoice),
Venue(InputMessageContentVenue),
Location(InputMessageContentLocation),
Text(InputMessageContentText),
}
Expand description
Represents a content of a message to be sent as a result of an inline query.
Variants§
Contact(InputMessageContentContact)
Represents a contact.
Invoice(InputMessageContentInvoice)
Represents an invoice.
Venue(InputMessageContentVenue)
Represents a venue.
Location(InputMessageContentLocation)
Represents a location.
Text(InputMessageContentText)
Represents a text.
Trait Implementations§
source§impl Clone for InputMessageContent
impl Clone for InputMessageContent
source§fn clone(&self) -> InputMessageContent
fn clone(&self) -> InputMessageContent
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 InputMessageContent
impl Debug for InputMessageContent
source§impl<'de> Deserialize<'de> for InputMessageContent
impl<'de> Deserialize<'de> for InputMessageContent
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<InputMessageContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<InputMessageContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Contact> for InputMessageContent
impl From<Contact> for InputMessageContent
source§fn from(value: Contact) -> InputMessageContent
fn from(value: Contact) -> InputMessageContent
Converts to this type from the input type.
source§impl From<InputMessageContentContact> for InputMessageContent
impl From<InputMessageContentContact> for InputMessageContent
source§fn from(original: InputMessageContentContact) -> InputMessageContent
fn from(original: InputMessageContentContact) -> InputMessageContent
Converts to this type from the input type.
source§impl From<InputMessageContentInvoice> for InputMessageContent
impl From<InputMessageContentInvoice> for InputMessageContent
source§fn from(original: InputMessageContentInvoice) -> InputMessageContent
fn from(original: InputMessageContentInvoice) -> InputMessageContent
Converts to this type from the input type.
source§impl From<InputMessageContentLocation> for InputMessageContent
impl From<InputMessageContentLocation> for InputMessageContent
source§fn from(original: InputMessageContentLocation) -> InputMessageContent
fn from(original: InputMessageContentLocation) -> InputMessageContent
Converts to this type from the input type.
source§impl From<InputMessageContentText> for InputMessageContent
impl From<InputMessageContentText> for InputMessageContent
source§fn from(original: InputMessageContentText) -> InputMessageContent
fn from(original: InputMessageContentText) -> InputMessageContent
Converts to this type from the input type.
source§impl From<InputMessageContentVenue> for InputMessageContent
impl From<InputMessageContentVenue> for InputMessageContent
source§fn from(original: InputMessageContentVenue) -> InputMessageContent
fn from(original: InputMessageContentVenue) -> InputMessageContent
Converts to this type from the input type.
source§impl From<Location> for InputMessageContent
impl From<Location> for InputMessageContent
source§fn from(value: Location) -> InputMessageContent
fn from(value: Location) -> InputMessageContent
Converts to this type from the input type.
source§impl<T> From<T> for InputMessageContent
impl<T> From<T> for InputMessageContent
source§fn from(value: T) -> InputMessageContent
fn from(value: T) -> InputMessageContent
Converts to this type from the input type.
source§impl From<Text> for InputMessageContent
impl From<Text> for InputMessageContent
source§fn from(value: Text) -> InputMessageContent
fn from(value: Text) -> InputMessageContent
Converts to this type from the input type.
source§impl From<Venue> for InputMessageContent
impl From<Venue> for InputMessageContent
source§fn from(value: Venue) -> InputMessageContent
fn from(value: Venue) -> InputMessageContent
Converts to this type from the input type.
source§impl PartialEq for InputMessageContent
impl PartialEq for InputMessageContent
source§fn eq(&self, other: &InputMessageContent) -> bool
fn eq(&self, other: &InputMessageContent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InputMessageContent
impl PartialOrd for InputMessageContent
source§fn partial_cmp(&self, other: &InputMessageContent) -> Option<Ordering>
fn partial_cmp(&self, other: &InputMessageContent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for InputMessageContent
impl Serialize for InputMessageContent
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
impl StructuralPartialEq for InputMessageContent
Auto Trait Implementations§
impl Freeze for InputMessageContent
impl RefUnwindSafe for InputMessageContent
impl Send for InputMessageContent
impl Sync for InputMessageContent
impl Unpin for InputMessageContent
impl UnwindSafe for InputMessageContent
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