pub struct MessagePaymentSuccessfulBot {
pub currency: String,
pub total_amount: i64,
pub is_recurring: bool,
pub is_first_recurring: bool,
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§
§currency: String
Currency for price of the product
total_amount: i64
Total price for the product, in the smallest units of the currency
is_recurring: bool
True, if this is a recurring payment
is_first_recurring: bool
True, if this is the first recurring payment
invoice_payload: String
Invoice payload
shipping_option_id: String
Identifier 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: String
Telegram payment identifier
provider_payment_charge_id: String
Provider 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 Default for MessagePaymentSuccessfulBot
impl Default for MessagePaymentSuccessfulBot
Source§fn default() -> MessagePaymentSuccessfulBot
fn default() -> MessagePaymentSuccessfulBot
Returns the “default value” for a type. Read more
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
impl StructuralPartialEq for MessagePaymentSuccessfulBot
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