pub struct AnswerInlineQuery { /* private fields */ }Expand description
Builder for the answerInlineQuery method.
Implementations§
Source§impl AnswerInlineQuery
impl AnswerInlineQuery
Sourcepub fn cache_time(self, secs: u32) -> Self
pub fn cache_time(self, secs: u32) -> Self
Sets how many seconds the results may be cached on the client (default 300).
Sourcepub fn is_personal(self, v: bool) -> Self
pub fn is_personal(self, v: bool) -> Self
Makes the results personal to the user — disables shared caching.
Sourcepub fn next_offset(self, o: impl Into<String>) -> Self
pub fn next_offset(self, o: impl Into<String>) -> Self
Sets the offset for pagination when there are more results available.
A button shown above the inline query results.
Trait Implementations§
Source§impl IntoFuture for AnswerInlineQuery
impl IntoFuture for AnswerInlineQuery
Source§type IntoFuture = Pin<Box<dyn Future<Output = <AnswerInlineQuery as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <AnswerInlineQuery 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 AnswerInlineQuery
impl !UnwindSafe for AnswerInlineQuery
impl Freeze for AnswerInlineQuery
impl Send for AnswerInlineQuery
impl Sync for AnswerInlineQuery
impl Unpin for AnswerInlineQuery
impl UnsafeUnpin for AnswerInlineQuery
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