pub struct EditStory { /* private fields */ }Expand description
Builder for the editStory method.
Edits a story previously posted by the bot on behalf of a managed business account.
Requires the can_manage_stories business bot right.
Implementations§
Source§impl EditStory
impl EditStory
Sourcepub fn caption(self, c: impl Into<String>) -> Self
pub fn caption(self, c: impl Into<String>) -> Self
Sets the story caption (0–2048 characters after entities parsing).
Sourcepub fn parse_mode(self, m: ParseMode) -> Self
pub fn parse_mode(self, m: ParseMode) -> Self
Sets the caption parse mode (MarkdownV2, HTML, or Markdown).
Sourcepub fn caption_entities(self, e: Vec<MessageEntity>) -> Self
pub fn caption_entities(self, e: Vec<MessageEntity>) -> Self
Sets special entities in the caption; alternative to parse_mode.
Trait Implementations§
Source§impl IntoFuture for EditStory
impl IntoFuture for EditStory
Source§type IntoFuture = Pin<Box<dyn Future<Output = <EditStory as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <EditStory 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 EditStory
impl !UnwindSafe for EditStory
impl Freeze for EditStory
impl Send for EditStory
impl Sync for EditStory
impl Unpin for EditStory
impl UnsafeUnpin for EditStory
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