pub struct MessagePaymentSuccessfulBot {
pub invoice_message_id: i64,
pub currency: String,
pub total_amount: i64,
pub invoice_payload: String,
pub shipping_option_id: String,
pub order_info: Option<OrderInfo>,
pub telegram_payment_charge_id: String,
pub provider_payment_charge_id: String,
}Expand description
A payment has been completed; for bots only
Fields§
§invoice_message_id: i64Identifier of the message with the corresponding invoice; can be an identifier of a deleted message
currency: StringCurrency for price of the product
total_amount: i64Total price for the product, in the minimal quantity of the currency
invoice_payload: StringInvoice payload
shipping_option_id: StringIdentifier of the shipping option chosen by the user; may be empty if not applicable
order_info: Option<OrderInfo>Information about the order; may be null
telegram_payment_charge_id: StringTelegram payment identifier
provider_payment_charge_id: StringProvider payment identifier
Trait Implementations§
Source§impl Clone for MessagePaymentSuccessfulBot
impl Clone for MessagePaymentSuccessfulBot
Source§fn clone(&self) -> MessagePaymentSuccessfulBot
fn clone(&self) -> MessagePaymentSuccessfulBot
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 MessagePaymentSuccessfulBot
impl Debug for MessagePaymentSuccessfulBot
Source§impl<'de> Deserialize<'de> for MessagePaymentSuccessfulBot
impl<'de> Deserialize<'de> for MessagePaymentSuccessfulBot
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 MessagePaymentSuccessfulBot
impl RefUnwindSafe for MessagePaymentSuccessfulBot
impl Send for MessagePaymentSuccessfulBot
impl Sync for MessagePaymentSuccessfulBot
impl Unpin for MessagePaymentSuccessfulBot
impl UnwindSafe for MessagePaymentSuccessfulBot
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