pub struct EditEphemeralMessageCaption { /* private fields */ }Expand description
Builder for the editEphemeralMessageCaption method.
Note that it is not guaranteed that the user will receive the message edit event, especially if they are offline.
Implementations§
Source§impl EditEphemeralMessageCaption
impl EditEphemeralMessageCaption
Sourcepub fn caption(self, c: impl Into<String>) -> Self
pub fn caption(self, c: impl Into<String>) -> Self
Sets the new caption text (0–1024 characters).
Sourcepub fn parse_mode(self, m: ParseMode) -> Self
pub fn parse_mode(self, m: ParseMode) -> Self
Sets the caption parse mode.
Sourcepub fn caption_entities(self, e: Vec<MessageEntity>) -> Self
pub fn caption_entities(self, e: Vec<MessageEntity>) -> Self
Special entities in the caption, in place of parse_mode.
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 EditEphemeralMessageCaption
impl IntoFuture for EditEphemeralMessageCaption
Source§type IntoFuture = Pin<Box<dyn Future<Output = <EditEphemeralMessageCaption as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <EditEphemeralMessageCaption 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 !RefUnwindSafe for EditEphemeralMessageCaption
impl !UnwindSafe for EditEphemeralMessageCaption
impl Freeze for EditEphemeralMessageCaption
impl Send for EditEphemeralMessageCaption
impl Sync for EditEphemeralMessageCaption
impl Unpin for EditEphemeralMessageCaption
impl UnsafeUnpin for EditEphemeralMessageCaption
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