Struct teloxide::types::ChosenInlineResult
source · pub struct ChosenInlineResult {
pub result_id: String,
pub from: User,
pub location: Option<Location>,
pub inline_message_id: Option<String>,
pub query: String,
}
Expand description
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>
A sender location, only for bots that require user location.
inline_message_id: Option<String>
An 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§
source§impl Clone for ChosenInlineResult
impl Clone for ChosenInlineResult
source§fn clone(&self) -> ChosenInlineResult
fn clone(&self) -> ChosenInlineResult
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 ChosenInlineResult
impl Debug for ChosenInlineResult
source§impl<'de> Deserialize<'de> for ChosenInlineResult
impl<'de> Deserialize<'de> for ChosenInlineResult
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ChosenInlineResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ChosenInlineResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ChosenInlineResult> for ChosenInlineResult
impl PartialEq<ChosenInlineResult> for ChosenInlineResult
source§fn eq(&self, other: &ChosenInlineResult) -> bool
fn eq(&self, other: &ChosenInlineResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ChosenInlineResult
impl Serialize for ChosenInlineResult
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more