pub struct PaymentReceipt {
pub title: String,
pub description: FormattedText,
pub photo: Option<Photo>,
pub date: i32,
pub seller_bot_user_id: i64,
pub payment_provider_user_id: i64,
pub invoice: Invoice,
pub order_info: Option<OrderInfo>,
pub shipping_option: Option<ShippingOption>,
pub credentials_title: String,
pub tip_amount: i64,
}Expand description
Contains information about a successful payment
Fields§
§title: StringProduct title
description: FormattedTextProduct description
photo: Option<Photo>Product photo; may be null
date: i32Point in time (Unix timestamp) when the payment was made
seller_bot_user_id: i64User identifier of the seller bot
payment_provider_user_id: i64User identifier of the payment provider bot
invoice: InvoiceInformation about the invoice
order_info: Option<OrderInfo>Order information; may be null
shipping_option: Option<ShippingOption>Chosen shipping option; may be null
credentials_title: StringTitle of the saved credentials chosen by the buyer
tip_amount: i64The amount of tip chosen by the buyer in the smallest units of the currency
Trait Implementations§
Source§impl Clone for PaymentReceipt
impl Clone for PaymentReceipt
Source§fn clone(&self) -> PaymentReceipt
fn clone(&self) -> PaymentReceipt
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 PaymentReceipt
impl Debug for PaymentReceipt
Source§impl Default for PaymentReceipt
impl Default for PaymentReceipt
Source§fn default() -> PaymentReceipt
fn default() -> PaymentReceipt
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaymentReceipt
impl<'de> Deserialize<'de> for PaymentReceipt
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 PaymentReceipt
impl PartialEq for PaymentReceipt
Source§impl Serialize for PaymentReceipt
impl Serialize for PaymentReceipt
impl StructuralPartialEq for PaymentReceipt
Auto Trait Implementations§
impl Freeze for PaymentReceipt
impl RefUnwindSafe for PaymentReceipt
impl Send for PaymentReceipt
impl Sync for PaymentReceipt
impl Unpin for PaymentReceipt
impl UnwindSafe for PaymentReceipt
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