Struct telegram_types::bot::inline_mode::InlineQuery
source · pub struct InlineQuery {
pub id: InlineQueryId,
pub from: Box<User>,
pub location: Option<Box<Location>>,
pub query: String,
pub offset: String,
}
Expand description
An incoming inline query.
Fields
id: InlineQueryId
Unique identifier for this query
from: Box<User>
Sender
location: Option<Box<Location>>
Sender location, only for bots that request user location
query: String
Text of the query (up to 512 characters)
offset: String
Offset of the results to be returned, can be controlled by the bot
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 moresourceimpl 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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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