pub trait AnswerCallbackQuerySetters: HasPayload<Payload = AnswerCallbackQuery> + Sized {
// Provided methods
fn callback_query_id<T>(self, value: T) -> Self
where T: Into<String> { ... }
fn text<T>(self, value: T) -> Self
where T: Into<String> { ... }
fn show_alert(self, value: bool) -> Self { ... }
fn url(self, value: Url) -> Self { ... }
fn cache_time(self, value: u32) -> Self { ... }
}
Expand description
Setters for fields of AnswerCallbackQuery
Provided Methods§
Sourcefn callback_query_id<T>(self, value: T) -> Self
fn callback_query_id<T>(self, value: T) -> Self
Setter for callback_query_id
field.
Sourcefn show_alert(self, value: bool) -> Self
fn show_alert(self, value: bool) -> Self
Setter for show_alert
field.
Sourcefn cache_time(self, value: u32) -> Self
fn cache_time(self, value: u32) -> Self
Setter for cache_time
field.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.