pub struct UpdateNewInlineQuery { /* private fields */ }
Expand description
A new incoming inline query; for bots only
Implementations§
Source§impl UpdateNewInlineQuery
impl UpdateNewInlineQuery
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> UpdateNewInlineQueryBuilder
pub fn id(&self) -> i64
pub fn sender_user_id(&self) -> i64
pub fn user_location(&self) -> &Option<Location>
pub fn chat_type(&self) -> &Option<ChatType>
pub fn query(&self) -> &String
pub fn offset(&self) -> &String
Trait Implementations§
Source§impl AsRef<UpdateNewInlineQuery> for UpdateNewInlineQuery
impl AsRef<UpdateNewInlineQuery> for UpdateNewInlineQuery
Source§fn as_ref(&self) -> &UpdateNewInlineQuery
fn as_ref(&self) -> &UpdateNewInlineQuery
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for UpdateNewInlineQuery
impl Clone for UpdateNewInlineQuery
Source§fn clone(&self) -> UpdateNewInlineQuery
fn clone(&self) -> UpdateNewInlineQuery
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 UpdateNewInlineQuery
impl Debug for UpdateNewInlineQuery
Source§impl Default for UpdateNewInlineQuery
impl Default for UpdateNewInlineQuery
Source§fn default() -> UpdateNewInlineQuery
fn default() -> UpdateNewInlineQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateNewInlineQuery
impl<'de> Deserialize<'de> for UpdateNewInlineQuery
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
Source§impl Serialize for UpdateNewInlineQuery
impl Serialize for UpdateNewInlineQuery
impl TDUpdate for UpdateNewInlineQuery
Auto Trait Implementations§
impl Freeze for UpdateNewInlineQuery
impl RefUnwindSafe for UpdateNewInlineQuery
impl Send for UpdateNewInlineQuery
impl Sync for UpdateNewInlineQuery
impl Unpin for UpdateNewInlineQuery
impl UnwindSafe for UpdateNewInlineQuery
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