Struct carapax::types::InputMessageContentText
source · pub struct InputMessageContentText { /* private fields */ }
Expand description
Represents a text message to be sent as the result of an inline query.
Implementations§
source§impl InputMessageContentText
impl InputMessageContentText
sourcepub fn new<T>(value: T) -> InputMessageContentText
pub fn new<T>(value: T) -> InputMessageContentText
sourcepub fn with_entities<T>(self, value: T) -> InputMessageContentTextwhere
T: IntoIterator<Item = TextEntity>,
pub fn with_entities<T>(self, value: T) -> InputMessageContentTextwhere
T: IntoIterator<Item = TextEntity>,
sourcepub fn with_link_preview_options(
self,
value: LinkPreviewOptions
) -> InputMessageContentText
pub fn with_link_preview_options( self, value: LinkPreviewOptions ) -> InputMessageContentText
Sets a new link preview options.
§Arguments
value
- Link preview generation options for the message.
sourcepub fn with_parse_mode(self, value: ParseMode) -> InputMessageContentText
pub fn with_parse_mode(self, value: ParseMode) -> InputMessageContentText
Trait Implementations§
source§impl Clone for InputMessageContentText
impl Clone for InputMessageContentText
source§fn clone(&self) -> InputMessageContentText
fn clone(&self) -> InputMessageContentText
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 InputMessageContentText
impl Debug for InputMessageContentText
source§impl<'de> Deserialize<'de> for InputMessageContentText
impl<'de> Deserialize<'de> for InputMessageContentText
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<InputMessageContentText, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<InputMessageContentText, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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<T> From<T> for InputMessageContentText
impl<T> From<T> for InputMessageContentText
source§fn from(value: T) -> InputMessageContentText
fn from(value: T) -> InputMessageContentText
Converts to this type from the input type.
source§impl From<Text> for InputMessageContentText
impl From<Text> for InputMessageContentText
source§fn from(value: Text) -> InputMessageContentText
fn from(value: Text) -> InputMessageContentText
Converts to this type from the input type.
source§impl PartialEq for InputMessageContentText
impl PartialEq for InputMessageContentText
source§fn eq(&self, other: &InputMessageContentText) -> bool
fn eq(&self, other: &InputMessageContentText) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InputMessageContentText
impl PartialOrd for InputMessageContentText
source§fn partial_cmp(&self, other: &InputMessageContentText) -> Option<Ordering>
fn partial_cmp(&self, other: &InputMessageContentText) -> 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 InputMessageContentText
impl Serialize for InputMessageContentText
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 InputMessageContentText
Auto Trait Implementations§
impl Freeze for InputMessageContentText
impl RefUnwindSafe for InputMessageContentText
impl Send for InputMessageContentText
impl Sync for InputMessageContentText
impl Unpin for InputMessageContentText
impl UnwindSafe for InputMessageContentText
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