Struct frankenstein::objects::InlineQuery
source · [−]pub struct InlineQuery {
pub id: String,
pub from: User,
pub location: Option<Location>,
pub chat_type: Option<String>,
pub query: String,
pub offset: String,
}
Fields
id: String
from: User
location: Option<Location>
chat_type: Option<String>
query: String
offset: String
Implementations
sourceimpl InlineQuery
impl InlineQuery
sourcepub fn builder() -> InlineQueryBuilder<((), (), (), (), (), ())>
pub fn builder() -> InlineQueryBuilder<((), (), (), (), (), ())>
Create a builder for building InlineQuery
.
On the builder, call .id(...)
, .from(...)
, .location(...)
(optional), .chat_type(...)
(optional), .query(...)
, .offset(...)
to set the values of the fields.
Finally, call .build()
to create the instance of InlineQuery
.
Trait Implementations
sourceimpl Clone for InlineQuery
impl Clone for InlineQuery
sourcefn clone(&self) -> InlineQuery
fn clone(&self) -> InlineQuery
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 InlineQuery
impl Debug for InlineQuery
sourceimpl<'de> Deserialize<'de> for InlineQuery
impl<'de> Deserialize<'de> for InlineQuery
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<InlineQuery> for InlineQuery
impl PartialEq<InlineQuery> for InlineQuery
sourcefn eq(&self, other: &InlineQuery) -> bool
fn eq(&self, other: &InlineQuery) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InlineQuery) -> bool
fn ne(&self, other: &InlineQuery) -> bool
This method tests for !=
.
sourceimpl Serialize for InlineQuery
impl Serialize for InlineQuery
impl StructuralPartialEq for InlineQuery
Auto Trait Implementations
impl RefUnwindSafe for InlineQuery
impl Send for InlineQuery
impl Sync for InlineQuery
impl Unpin for InlineQuery
impl UnwindSafe for InlineQuery
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