Struct rust_tdlib::types::AnswerInlineQuery
source · [−]pub struct AnswerInlineQuery { /* private fields */ }Expand description
Sets the result of an inline query; for bots only
Implementations
sourceimpl AnswerInlineQuery
impl AnswerInlineQuery
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> AnswerInlineQueryBuilder
pub fn inline_query_id(&self) -> i64
pub fn is_personal(&self) -> bool
pub fn results(&self) -> &Vec<InputInlineQueryResult>
pub fn cache_time(&self) -> i32
pub fn next_offset(&self) -> &String
pub fn switch_pm_text(&self) -> &String
pub fn switch_pm_parameter(&self) -> &String
Trait Implementations
sourceimpl AsRef<AnswerInlineQuery> for AnswerInlineQuery
impl AsRef<AnswerInlineQuery> for AnswerInlineQuery
sourcefn as_ref(&self) -> &AnswerInlineQuery
fn as_ref(&self) -> &AnswerInlineQuery
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for AnswerInlineQuery
impl Clone for AnswerInlineQuery
sourcefn clone(&self) -> AnswerInlineQuery
fn clone(&self) -> AnswerInlineQuery
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 AnswerInlineQuery
impl Debug for AnswerInlineQuery
sourceimpl Default for AnswerInlineQuery
impl Default for AnswerInlineQuery
sourcefn default() -> AnswerInlineQuery
fn default() -> AnswerInlineQuery
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AnswerInlineQuery
impl<'de> Deserialize<'de> for AnswerInlineQuery
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 AnswerInlineQuery
impl Serialize for AnswerInlineQuery
Auto Trait Implementations
impl RefUnwindSafe for AnswerInlineQuery
impl Send for AnswerInlineQuery
impl Sync for AnswerInlineQuery
impl Unpin for AnswerInlineQuery
impl UnwindSafe for AnswerInlineQuery
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