pub struct EditMessageText { /* private fields */ }Expand description
Builder for the editMessageText method.
Implementations§
Source§impl EditMessageText
impl EditMessageText
Sourcepub fn parse_mode(self, m: ParseMode) -> Self
pub fn parse_mode(self, m: ParseMode) -> Self
Sets the text parse mode (MarkdownV2, HTML, or Markdown).
Sourcepub fn entities(self, e: Vec<MessageEntity>) -> Self
pub fn entities(self, e: Vec<MessageEntity>) -> Self
Sets custom message entities instead of using a parse mode.
Sourcepub fn link_preview_options(self, o: LinkPreviewOptions) -> Self
pub fn link_preview_options(self, o: LinkPreviewOptions) -> Self
Configures link preview options for the edited message.
Sourcepub fn reply_markup(self, m: InlineKeyboardMarkup) -> Self
pub fn reply_markup(self, m: InlineKeyboardMarkup) -> Self
Attaches a reply markup (inline keyboard, reply keyboard, etc.).
Trait Implementations§
Source§impl IntoFuture for EditMessageText
impl IntoFuture for EditMessageText
Source§type IntoFuture = Pin<Box<dyn Future<Output = <EditMessageText as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <EditMessageText as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl Freeze for EditMessageText
impl !RefUnwindSafe for EditMessageText
impl Send for EditMessageText
impl Sync for EditMessageText
impl Unpin for EditMessageText
impl UnsafeUnpin for EditMessageText
impl !UnwindSafe for EditMessageText
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