Struct rust_tdlib::types::InlineQueryResults
source · pub struct InlineQueryResults { /* private fields */ }
Expand description
Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query
Implementations§
source§impl InlineQueryResults
impl InlineQueryResults
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> InlineQueryResultsBuilder
pub fn inline_query_id(&self) -> i64
pub fn next_offset(&self) -> &String
pub fn results(&self) -> &Vec<InlineQueryResult>
pub fn switch_pm_text(&self) -> &String
pub fn switch_pm_parameter(&self) -> &String
Trait Implementations§
source§impl AsRef<InlineQueryResults> for InlineQueryResults
impl AsRef<InlineQueryResults> for InlineQueryResults
source§fn as_ref(&self) -> &InlineQueryResults
fn as_ref(&self) -> &InlineQueryResults
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for InlineQueryResults
impl Clone for InlineQueryResults
source§fn clone(&self) -> InlineQueryResults
fn clone(&self) -> InlineQueryResults
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 InlineQueryResults
impl Debug for InlineQueryResults
source§impl Default for InlineQueryResults
impl Default for InlineQueryResults
source§fn default() -> InlineQueryResults
fn default() -> InlineQueryResults
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InlineQueryResults
impl<'de> Deserialize<'de> for InlineQueryResults
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