pub struct NoSkipChosenInlineResult {
pub result_id: String,
pub from: BoxWrapper<Unbox<User>>,
pub location: Option<BoxWrapper<Unbox<Location>>>,
pub inline_message_id: Option<String>,
pub query: String,
}Expand description
Companion type to ChosenInlineResult that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§result_id: StringThe unique identifier for the result that was chosen
from: BoxWrapper<Unbox<User>>The user that chose the result
location: Option<BoxWrapper<Unbox<Location>>>§inline_message_id: Option<String>§query: StringThe query that was used to obtain the result
Implementations§
Source§impl NoSkipChosenInlineResult
impl NoSkipChosenInlineResult
pub fn skip(self) -> ChosenInlineResult
Trait Implementations§
Source§impl Clone for NoSkipChosenInlineResult
impl Clone for NoSkipChosenInlineResult
Source§fn clone(&self) -> NoSkipChosenInlineResult
fn clone(&self) -> NoSkipChosenInlineResult
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 NoSkipChosenInlineResult
impl Debug for NoSkipChosenInlineResult
Source§impl Default for NoSkipChosenInlineResult
impl Default for NoSkipChosenInlineResult
Source§fn default() -> NoSkipChosenInlineResult
fn default() -> NoSkipChosenInlineResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NoSkipChosenInlineResult
impl<'de> Deserialize<'de> for NoSkipChosenInlineResult
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 From<NoSkipChosenInlineResult> for ChosenInlineResult
impl From<NoSkipChosenInlineResult> for ChosenInlineResult
Source§fn from(t: NoSkipChosenInlineResult) -> Self
fn from(t: NoSkipChosenInlineResult) -> Self
Converts to this type from the input type.
Source§impl Hash for NoSkipChosenInlineResult
impl Hash for NoSkipChosenInlineResult
Source§impl Into<NoSkipChosenInlineResult> for ChosenInlineResult
impl Into<NoSkipChosenInlineResult> for ChosenInlineResult
Source§fn into(self) -> NoSkipChosenInlineResult
fn into(self) -> NoSkipChosenInlineResult
Converts this type into the (usually inferred) input type.
Source§impl Ord for NoSkipChosenInlineResult
impl Ord for NoSkipChosenInlineResult
Source§fn cmp(&self, other: &NoSkipChosenInlineResult) -> Ordering
fn cmp(&self, other: &NoSkipChosenInlineResult) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NoSkipChosenInlineResult
impl PartialEq for NoSkipChosenInlineResult
Source§impl PartialOrd for NoSkipChosenInlineResult
impl PartialOrd for NoSkipChosenInlineResult
Source§impl Serialize for NoSkipChosenInlineResult
impl Serialize for NoSkipChosenInlineResult
impl Eq for NoSkipChosenInlineResult
impl StructuralPartialEq for NoSkipChosenInlineResult
Auto Trait Implementations§
impl Freeze for NoSkipChosenInlineResult
impl RefUnwindSafe for NoSkipChosenInlineResult
impl Send for NoSkipChosenInlineResult
impl Sync for NoSkipChosenInlineResult
impl Unpin for NoSkipChosenInlineResult
impl UnsafeUnpin for NoSkipChosenInlineResult
impl UnwindSafe for NoSkipChosenInlineResult
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.