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: StringThe unique identifier for the result that was chosen.
from: UserThe 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: StringThe 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 duplicate 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 for ChosenInlineResult
impl PartialEq for ChosenInlineResult
Source§impl Serialize for ChosenInlineResult
impl Serialize for ChosenInlineResult
impl StructuralPartialEq for ChosenInlineResult
Auto Trait Implementations§
impl Freeze for ChosenInlineResult
impl RefUnwindSafe for ChosenInlineResult
impl Send for ChosenInlineResult
impl Sync for ChosenInlineResult
impl Unpin for ChosenInlineResult
impl UnwindSafe for ChosenInlineResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more