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
Auto Trait Implementations§
impl Freeze for InlineQueryResults
impl RefUnwindSafe for InlineQueryResults
impl Send for InlineQueryResults
impl Sync for InlineQueryResults
impl Unpin for InlineQueryResults
impl UnwindSafe for InlineQueryResults
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more