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