Struct tbot::types::pre_checkout_query::PreCheckoutQuery
source · #[non_exhaustive]pub struct PreCheckoutQuery {
pub id: Id,
pub from: User,
pub currency: String,
pub total_amount: u32,
pub invoice_payload: String,
pub shipping_option_id: Option<String>,
pub order_info: Option<OrderInfo>,
}
Expand description
Represents PreCheckoutQuery
.
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.id: Id
The ID of the query.
from: User
The user who sent the query.
currency: String
The currency of of the invoice.
total_amount: u32
The total price.
invoice_payload: String
The invoice payload sent previously by the bot.
shipping_option_id: Option<String>
The ID of the chosen shipping option.
order_info: Option<OrderInfo>
The order information.
Trait Implementations§
source§impl Clone for PreCheckoutQuery
impl Clone for PreCheckoutQuery
source§fn clone(&self) -> PreCheckoutQuery
fn clone(&self) -> PreCheckoutQuery
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 PreCheckoutQuery
impl Debug for PreCheckoutQuery
source§impl<'de> Deserialize<'de> for PreCheckoutQuery
impl<'de> Deserialize<'de> for PreCheckoutQuery
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 Hash for PreCheckoutQuery
impl Hash for PreCheckoutQuery
source§impl PartialEq<PreCheckoutQuery> for PreCheckoutQuery
impl PartialEq<PreCheckoutQuery> for PreCheckoutQuery
source§fn eq(&self, other: &PreCheckoutQuery) -> bool
fn eq(&self, other: &PreCheckoutQuery) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.