pub struct AnswerInlineQueryBuilder<'a> { /* private fields */ }Expand description
Builder for the [answerInlineQuery] API method.
Implementations§
Source§impl<'a> AnswerInlineQueryBuilder<'a>
impl<'a> AnswerInlineQueryBuilder<'a>
Sourcepub fn cache_time(self, val: i64) -> Self
pub fn cache_time(self, val: i64) -> Self
Sets the cache_time parameter.
Sourcepub fn is_personal(self, val: bool) -> Self
pub fn is_personal(self, val: bool) -> Self
Sets the is_personal parameter.
Sourcepub fn next_offset(self, val: impl Into<String>) -> Self
pub fn next_offset(self, val: impl Into<String>) -> Self
Sets the next_offset parameter.
Sets the button parameter.
Trait Implementations§
Source§impl<'a> IntoFuture for AnswerInlineQueryBuilder<'a>
impl<'a> IntoFuture for AnswerInlineQueryBuilder<'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 = <AnswerInlineQueryBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <AnswerInlineQueryBuilder<'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 AnswerInlineQueryBuilder<'a>
impl<'a> !RefUnwindSafe for AnswerInlineQueryBuilder<'a>
impl<'a> Send for AnswerInlineQueryBuilder<'a>
impl<'a> Sync for AnswerInlineQueryBuilder<'a>
impl<'a> Unpin for AnswerInlineQueryBuilder<'a>
impl<'a> UnsafeUnpin for AnswerInlineQueryBuilder<'a>
impl<'a> !UnwindSafe for AnswerInlineQueryBuilder<'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