pub struct InputMessageContentText {
pub message_text: String,
pub parse_mode: Option<ParseMode>,
pub entities: Option<Vec<MessageEntity>>,
pub disable_web_page_preview: Option<bool>,
}
Expand description
Represents the content of a text message to be sent as the result of an inline query.
Fields§
§message_text: String
Text of the message to be sent, 1-4096 characters.
parse_mode: Option<ParseMode>
Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
entities: Option<Vec<MessageEntity>>
List of special entities that appear in message text, which can be
specified instead of parse_mode
.
disable_web_page_preview: Option<bool>
Disables link previews for links in the sent message.
Implementations§
Source§impl InputMessageContentText
impl InputMessageContentText
pub fn new<S>(message_text: S) -> Self
pub fn message_text<S>(self, val: S) -> Self
pub fn parse_mode(self, val: ParseMode) -> Self
pub fn entities<C>(self, val: C) -> Selfwhere
C: IntoIterator<Item = MessageEntity>,
pub fn disable_web_page_preview(self, val: bool) -> Self
Trait Implementations§
Source§impl Clone for InputMessageContentText
impl Clone for InputMessageContentText
Source§fn clone(&self) -> InputMessageContentText
fn clone(&self) -> InputMessageContentText
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 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<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 PartialEq for InputMessageContentText
impl PartialEq for InputMessageContentText
Source§impl Serialize for InputMessageContentText
impl Serialize for InputMessageContentText
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
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