pub struct AnswerCallbackQueryParams {
pub callback_query_id: String,
pub text: Option<String>,
pub show_alert: Option<bool>,
pub url: Option<String>,
pub cache_time: Option<u32>,
}
Fields§
§callback_query_id: String
§text: Option<String>
§show_alert: Option<bool>
§url: Option<String>
§cache_time: Option<u32>
Implementations§
source§impl AnswerCallbackQueryParams
impl AnswerCallbackQueryParams
sourcepub fn builder() -> AnswerCallbackQueryParamsBuilder<((), (), (), (), ())>
pub fn builder() -> AnswerCallbackQueryParamsBuilder<((), (), (), (), ())>
Create a builder for building AnswerCallbackQueryParams
.
On the builder, call .callback_query_id(...)
, .text(...)
(optional), .show_alert(...)
(optional), .url(...)
(optional), .cache_time(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of AnswerCallbackQueryParams
.
Trait Implementations§
source§impl Clone for AnswerCallbackQueryParams
impl Clone for AnswerCallbackQueryParams
source§fn clone(&self) -> AnswerCallbackQueryParams
fn clone(&self) -> AnswerCallbackQueryParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AnswerCallbackQueryParams
impl Debug for AnswerCallbackQueryParams
source§impl<'de> Deserialize<'de> for AnswerCallbackQueryParams
impl<'de> Deserialize<'de> for AnswerCallbackQueryParams
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for AnswerCallbackQueryParams
impl PartialEq for AnswerCallbackQueryParams
source§fn eq(&self, other: &AnswerCallbackQueryParams) -> bool
fn eq(&self, other: &AnswerCallbackQueryParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AnswerCallbackQueryParams
impl StructuralPartialEq for AnswerCallbackQueryParams
Auto Trait Implementations§
impl Freeze for AnswerCallbackQueryParams
impl RefUnwindSafe for AnswerCallbackQueryParams
impl Send for AnswerCallbackQueryParams
impl Sync for AnswerCallbackQueryParams
impl Unpin for AnswerCallbackQueryParams
impl UnwindSafe for AnswerCallbackQueryParams
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