pub struct SendMessageDraftBuilder<'a> { /* private fields */ }Expand description
Builder for the [sendMessageDraft] API method.
Implementations§
Source§impl<'a> SendMessageDraftBuilder<'a>
impl<'a> SendMessageDraftBuilder<'a>
Sourcepub fn message_thread_id(self, val: i64) -> Self
pub fn message_thread_id(self, val: i64) -> Self
Sets the message_thread_id parameter.
Sourcepub fn parse_mode(self, val: impl Into<String>) -> Self
pub fn parse_mode(self, val: impl Into<String>) -> Self
Sets the parse_mode parameter.
Sourcepub fn entities(self, val: Vec<MessageEntity>) -> Self
pub fn entities(self, val: Vec<MessageEntity>) -> Self
Sets the entities parameter.
Trait Implementations§
Source§impl<'a> IntoFuture for SendMessageDraftBuilder<'a>
impl<'a> IntoFuture for SendMessageDraftBuilder<'a>
Source§type Output = Result<bool, TelegramError>
type Output = Result<bool, TelegramError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SendMessageDraftBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <SendMessageDraftBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
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<'a> Freeze for SendMessageDraftBuilder<'a>
impl<'a> !RefUnwindSafe for SendMessageDraftBuilder<'a>
impl<'a> Send for SendMessageDraftBuilder<'a>
impl<'a> Sync for SendMessageDraftBuilder<'a>
impl<'a> Unpin for SendMessageDraftBuilder<'a>
impl<'a> UnsafeUnpin for SendMessageDraftBuilder<'a>
impl<'a> !UnwindSafe for SendMessageDraftBuilder<'a>
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