pub struct UpdateNewPreCheckoutQuery {
pub id: i64,
pub sender_user_id: i32,
pub currency: String,
pub total_amount: i64,
pub invoice_payload: String,
pub shipping_option_id: String,
pub order_info: Option<OrderInfo>,
}
Expand description
A new incoming pre-checkout query; for bots only. Contains full information about a checkout
Fields§
§id: i64
Unique query identifier
sender_user_id: i32
Identifier of the user who sent the query
currency: String
Currency for the product price
total_amount: i64
Total price for the product, in the minimal quantity of the currency
invoice_payload: String
Invoice payload
shipping_option_id: String
Identifier of a shipping option chosen by the user; may be empty if not applicable
order_info: Option<OrderInfo>
Information about the order; may be null
Trait Implementations§
Source§impl Clone for UpdateNewPreCheckoutQuery
impl Clone for UpdateNewPreCheckoutQuery
Source§fn clone(&self) -> UpdateNewPreCheckoutQuery
fn clone(&self) -> UpdateNewPreCheckoutQuery
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 UpdateNewPreCheckoutQuery
impl Debug for UpdateNewPreCheckoutQuery
Source§impl<'de> Deserialize<'de> for UpdateNewPreCheckoutQuery
impl<'de> Deserialize<'de> for UpdateNewPreCheckoutQuery
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
Auto Trait Implementations§
impl Freeze for UpdateNewPreCheckoutQuery
impl RefUnwindSafe for UpdateNewPreCheckoutQuery
impl Send for UpdateNewPreCheckoutQuery
impl Sync for UpdateNewPreCheckoutQuery
impl Unpin for UpdateNewPreCheckoutQuery
impl UnwindSafe for UpdateNewPreCheckoutQuery
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