pub struct AnswerCallbackQuery { /* private fields */ }Expand description
Builder for the answerCallbackQuery method.
Implementations§
Source§impl AnswerCallbackQuery
impl AnswerCallbackQuery
Sourcepub fn text(self, t: impl Into<String>) -> Self
pub fn text(self, t: impl Into<String>) -> Self
The text of the notification shown to the user. 0–200 characters.
Sourcepub fn show_alert(self, v: bool) -> Self
pub fn show_alert(self, v: bool) -> Self
Shows an alert dialog instead of a toast notification for the callback answer.
Sourcepub fn url(self, u: impl Into<String>) -> Self
pub fn url(self, u: impl Into<String>) -> Self
Sets the URL to open when the callback button answer is tapped.
Sourcepub fn cache_time(self, secs: u32) -> Self
pub fn cache_time(self, secs: u32) -> Self
Sets how long the callback answer may be cached on the client in seconds.
Trait Implementations§
Source§impl IntoFuture for AnswerCallbackQuery
impl IntoFuture for AnswerCallbackQuery
Source§type IntoFuture = Pin<Box<dyn Future<Output = <AnswerCallbackQuery as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <AnswerCallbackQuery 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 Freeze for AnswerCallbackQuery
impl !RefUnwindSafe for AnswerCallbackQuery
impl Send for AnswerCallbackQuery
impl Sync for AnswerCallbackQuery
impl Unpin for AnswerCallbackQuery
impl UnsafeUnpin for AnswerCallbackQuery
impl !UnwindSafe for AnswerCallbackQuery
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