pub struct InputTextMessageContent {
pub message_text: String,
pub parse_mode: Option<String>,
pub entities: Vec<MessageEntity>,
pub link_preview_options: Option<LinkPreviewOptions>,
}Expand description
Fields§
§message_text: StringText of the message to be sent, 1-4096 characters
parse_mode: Option<String>Optional. Mode for parsing entities in the message text. See formatting options for more details.
entities: Vec<MessageEntity>Optional. List of special entities that appear in message text, which can be specified instead of parse_mode
link_preview_options: Option<LinkPreviewOptions>Optional. Link preview generation options for the message
Trait Implementations§
Source§impl Clone for InputTextMessageContent
impl Clone for InputTextMessageContent
Source§fn clone(&self) -> InputTextMessageContent
fn clone(&self) -> InputTextMessageContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InputTextMessageContent
impl Debug for InputTextMessageContent
Source§impl Default for InputTextMessageContent
impl Default for InputTextMessageContent
Source§fn default() -> InputTextMessageContent
fn default() -> InputTextMessageContent
Returns the “default value” for a type. Read more
Source§impl From<InputTextMessageContent> for InputMessageContent
impl From<InputTextMessageContent> for InputMessageContent
Source§fn from(value: InputTextMessageContent) -> Self
fn from(value: InputTextMessageContent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InputTextMessageContent
impl PartialEq for InputTextMessageContent
Source§fn eq(&self, other: &InputTextMessageContent) -> bool
fn eq(&self, other: &InputTextMessageContent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InputTextMessageContent
impl Serialize for InputTextMessageContent
impl StructuralPartialEq for InputTextMessageContent
Auto Trait Implementations§
impl Freeze for InputTextMessageContent
impl RefUnwindSafe for InputTextMessageContent
impl Send for InputTextMessageContent
impl Sync for InputTextMessageContent
impl Unpin for InputTextMessageContent
impl UnsafeUnpin for InputTextMessageContent
impl UnwindSafe for InputTextMessageContent
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