pub struct MessagePaymentSuccessful {
pub invoice_chat_id: i64,
pub invoice_message_id: i64,
pub currency: String,
pub total_amount: i64,
pub is_recurring: bool,
pub is_first_recurring: bool,
pub invoice_name: String,
}
Expand description
A payment has been completed
Fields§
§invoice_chat_id: i64
Identifier of the chat, containing the corresponding invoice message
invoice_message_id: i64
Identifier of the message with the corresponding invoice; can be 0 or an identifier of a deleted message
currency: String
Currency for the 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_name: String
Name of the invoice; may be empty if unknown
Trait Implementations§
Source§impl Clone for MessagePaymentSuccessful
impl Clone for MessagePaymentSuccessful
Source§fn clone(&self) -> MessagePaymentSuccessful
fn clone(&self) -> MessagePaymentSuccessful
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 MessagePaymentSuccessful
impl Debug for MessagePaymentSuccessful
Source§impl Default for MessagePaymentSuccessful
impl Default for MessagePaymentSuccessful
Source§fn default() -> MessagePaymentSuccessful
fn default() -> MessagePaymentSuccessful
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessagePaymentSuccessful
impl<'de> Deserialize<'de> for MessagePaymentSuccessful
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 MessagePaymentSuccessful
impl PartialEq for MessagePaymentSuccessful
Source§impl Serialize for MessagePaymentSuccessful
impl Serialize for MessagePaymentSuccessful
impl StructuralPartialEq for MessagePaymentSuccessful
Auto Trait Implementations§
impl Freeze for MessagePaymentSuccessful
impl RefUnwindSafe for MessagePaymentSuccessful
impl Send for MessagePaymentSuccessful
impl Sync for MessagePaymentSuccessful
impl Unpin for MessagePaymentSuccessful
impl UnwindSafe for MessagePaymentSuccessful
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