Struct rust_tdlib::types::GetInlineQueryResults
source · pub struct GetInlineQueryResults { /* private fields */ }
Expand description
Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires
Implementations§
source§impl GetInlineQueryResults
impl GetInlineQueryResults
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> GetInlineQueryResultsBuilder
pub fn bot_user_id(&self) -> i64
pub fn chat_id(&self) -> i64
pub fn user_location(&self) -> &Location
pub fn query(&self) -> &String
pub fn offset(&self) -> &String
Trait Implementations§
source§impl AsRef<GetInlineQueryResults> for GetInlineQueryResults
impl AsRef<GetInlineQueryResults> for GetInlineQueryResults
source§fn as_ref(&self) -> &GetInlineQueryResults
fn as_ref(&self) -> &GetInlineQueryResults
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for GetInlineQueryResults
impl Clone for GetInlineQueryResults
source§fn clone(&self) -> GetInlineQueryResults
fn clone(&self) -> GetInlineQueryResults
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 GetInlineQueryResults
impl Debug for GetInlineQueryResults
source§impl Default for GetInlineQueryResults
impl Default for GetInlineQueryResults
source§fn default() -> GetInlineQueryResults
fn default() -> GetInlineQueryResults
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GetInlineQueryResults
impl<'de> Deserialize<'de> for GetInlineQueryResults
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