Struct tg_bot_models::ChosenInlineResult [−][src]
pub struct ChosenInlineResult { pub result_id: String, pub from: User, pub location: Option<Location>, pub inline_message_id: Option<String>, pub query: String, }
Represents a result of an inline query that was chosen by the user and sent to their chat partner.
Fields
result_id: String
The unique identifier for the result that was chosen
from: User
The user that chose the result
location: Option<Location>
Optional. Sender location, only for bots that require user location
inline_message_id: Option<String>
Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.
query: String
The query that was used to obtain the result
Trait Implementations
impl Debug for ChosenInlineResult
[src]
impl Debug for ChosenInlineResult
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ChosenInlineResult
[src]
impl Clone for ChosenInlineResult
fn clone(&self) -> ChosenInlineResult
[src]
fn clone(&self) -> ChosenInlineResult
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for ChosenInlineResult
[src]
impl PartialEq for ChosenInlineResult
fn eq(&self, other: &ChosenInlineResult) -> bool
[src]
fn eq(&self, other: &ChosenInlineResult) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ChosenInlineResult) -> bool
[src]
fn ne(&self, other: &ChosenInlineResult) -> bool
This method tests for !=
.
impl PartialOrd for ChosenInlineResult
[src]
impl PartialOrd for ChosenInlineResult
fn partial_cmp(&self, other: &ChosenInlineResult) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &ChosenInlineResult) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &ChosenInlineResult) -> bool
[src]
fn lt(&self, other: &ChosenInlineResult) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &ChosenInlineResult) -> bool
[src]
fn le(&self, other: &ChosenInlineResult) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &ChosenInlineResult) -> bool
[src]
fn gt(&self, other: &ChosenInlineResult) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &ChosenInlineResult) -> bool
[src]
fn ge(&self, other: &ChosenInlineResult) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Auto Trait Implementations
impl Send for ChosenInlineResult
impl Send for ChosenInlineResult
impl Sync for ChosenInlineResult
impl Sync for ChosenInlineResult