Struct frankenstein::objects::CallbackQuery
source · [−]pub struct CallbackQuery {
pub id: String,
pub from: User,
pub message: Option<Message>,
pub inline_message_id: Option<String>,
pub chat_instance: String,
pub data: Option<String>,
pub game_short_name: Option<String>,
}
Fields
id: String
from: User
message: Option<Message>
inline_message_id: Option<String>
chat_instance: String
data: Option<String>
game_short_name: Option<String>
Implementations
sourceimpl CallbackQuery
impl CallbackQuery
sourcepub fn builder() -> CallbackQueryBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> CallbackQueryBuilder<((), (), (), (), (), (), ())>
Create a builder for building CallbackQuery
.
On the builder, call .id(...)
, .from(...)
, .message(...)
(optional), .inline_message_id(...)
(optional), .chat_instance(...)
, .data(...)
(optional), .game_short_name(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CallbackQuery
.
Trait Implementations
sourceimpl Clone for CallbackQuery
impl Clone for CallbackQuery
sourcefn clone(&self) -> CallbackQuery
fn clone(&self) -> CallbackQuery
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CallbackQuery
impl Debug for CallbackQuery
sourceimpl<'de> Deserialize<'de> for CallbackQuery
impl<'de> Deserialize<'de> for CallbackQuery
sourcefn 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
sourceimpl PartialEq<CallbackQuery> for CallbackQuery
impl PartialEq<CallbackQuery> for CallbackQuery
sourcefn eq(&self, other: &CallbackQuery) -> bool
fn eq(&self, other: &CallbackQuery) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CallbackQuery) -> bool
fn ne(&self, other: &CallbackQuery) -> bool
This method tests for !=
.
sourceimpl Serialize for CallbackQuery
impl Serialize for CallbackQuery
impl StructuralPartialEq for CallbackQuery
Auto Trait Implementations
impl RefUnwindSafe for CallbackQuery
impl Send for CallbackQuery
impl Sync for CallbackQuery
impl Unpin for CallbackQuery
impl UnwindSafe for CallbackQuery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more