Struct tbot::types::ChosenInlineResult
source · #[non_exhaustive]pub struct ChosenInlineResult {
pub result_id: String,
pub from: User,
pub location: Option<Location>,
pub inline_message_id: Option<InlineMessageId>,
pub query: String,
}
Expand description
Represents a ChosenInlineResult
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.result_id: String
ID of the chosen result.
from: User
The user who chose the result.
location: Option<Location>
The location of the user, if enabled and allowed.
inline_message_id: Option<InlineMessageId>
The ID of the sent message.
query: String
The query 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<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 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 ==
.