pub struct CallbackQueryAnswer {
pub text: String,
pub show_alert: bool,
pub url: String,
}
Expand description
Contains a bot’s answer to a callback query
Fields§
§text: String
Text of the answer
show_alert: bool
True, if an alert should be shown to the user instead of a toast notification
url: String
URL to be opened
Trait Implementations§
Source§impl Clone for CallbackQueryAnswer
impl Clone for CallbackQueryAnswer
Source§fn clone(&self) -> CallbackQueryAnswer
fn clone(&self) -> CallbackQueryAnswer
Returns a duplicate 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 CallbackQueryAnswer
impl Debug for CallbackQueryAnswer
Source§impl<'de> Deserialize<'de> for CallbackQueryAnswer
impl<'de> Deserialize<'de> for CallbackQueryAnswer
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
Auto Trait Implementations§
impl Freeze for CallbackQueryAnswer
impl RefUnwindSafe for CallbackQueryAnswer
impl Send for CallbackQueryAnswer
impl Sync for CallbackQueryAnswer
impl Unpin for CallbackQueryAnswer
impl UnwindSafe for CallbackQueryAnswer
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