pub struct UpdateNewPreCheckoutQuery {
pub id: i64,
pub sender_user_id: i64,
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: i64Unique query identifier
sender_user_id: i64Identifier of the user who sent the query
currency: StringCurrency for the product price
total_amount: i64Total price for the product, in the smallest units of the currency
invoice_payload: StringInvoice payload
shipping_option_id: StringIdentifier 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 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 UpdateNewPreCheckoutQuery
impl Debug for UpdateNewPreCheckoutQuery
Source§impl Default for UpdateNewPreCheckoutQuery
impl Default for UpdateNewPreCheckoutQuery
Source§fn default() -> UpdateNewPreCheckoutQuery
fn default() -> UpdateNewPreCheckoutQuery
Returns the “default value” for a type. Read more
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
impl StructuralPartialEq for UpdateNewPreCheckoutQuery
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