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
sourceimpl 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
sourceimpl AsRef<GetInlineQueryResults> for GetInlineQueryResults
 
impl AsRef<GetInlineQueryResults> for GetInlineQueryResults
sourcefn as_ref(&self) -> &GetInlineQueryResults
 
fn as_ref(&self) -> &GetInlineQueryResults
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for GetInlineQueryResults
 
impl Clone for GetInlineQueryResults
sourcefn clone(&self) -> GetInlineQueryResults
 
fn clone(&self) -> GetInlineQueryResults
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 GetInlineQueryResults
 
impl Debug for GetInlineQueryResults
sourceimpl Default for GetInlineQueryResults
 
impl Default for GetInlineQueryResults
sourcefn default() -> GetInlineQueryResults
 
fn default() -> GetInlineQueryResults
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for GetInlineQueryResults
 
impl<'de> Deserialize<'de> for GetInlineQueryResults
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 Serialize for GetInlineQueryResults
 
impl Serialize for GetInlineQueryResults
Auto Trait Implementations
impl RefUnwindSafe for GetInlineQueryResults
impl Send for GetInlineQueryResults
impl Sync for GetInlineQueryResults
impl Unpin for GetInlineQueryResults
impl UnwindSafe for GetInlineQueryResults
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