pub struct PaymentReceipt {Show 14 fields
pub date: i32,
pub bot_id: i64,
pub provider_id: i64,
pub title: String,
pub description: String,
pub photo: Option<WebDocument>,
pub invoice: Invoice,
pub info: Option<PaymentRequestedInfo>,
pub shipping: Option<ShippingOption>,
pub tip_amount: Option<i64>,
pub currency: String,
pub total_amount: i64,
pub credentials_title: String,
pub users: Vec<User>,
}Expand description
Generated from:
payments.paymentReceipt#70c4fe03 flags:# date:int bot_id:long provider_id:long title:string description:string photo:flags.2?WebDocument invoice:Invoice info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption tip_amount:flags.3?long currency:string total_amount:long credentials_title:string users:Vector<User> = payments.PaymentReceiptFields§
§date: i32§bot_id: i64§provider_id: i64§title: String§description: String§photo: Option<WebDocument>§invoice: Invoice§info: Option<PaymentRequestedInfo>§shipping: Option<ShippingOption>§tip_amount: Option<i64>§currency: String§total_amount: i64§credentials_title: String§users: Vec<User>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 Deserializable for PaymentReceipt
impl Deserializable for PaymentReceipt
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<PaymentReceipt> for PaymentReceipt
impl From<PaymentReceipt> for PaymentReceipt
Source§fn from(x: PaymentReceipt) -> Self
fn from(x: PaymentReceipt) -> Self
Converts to this type from the input type.
Source§impl Identifiable for PaymentReceipt
impl Identifiable for PaymentReceipt
Source§const CONSTRUCTOR_ID: u32 = 0x70c4fe03
const CONSTRUCTOR_ID: u32 = 0x70c4fe03
The constructor ID as specified in the TL schema.
Source§impl PartialEq for PaymentReceipt
impl PartialEq for PaymentReceipt
Source§impl Serializable for PaymentReceipt
impl Serializable for PaymentReceipt
Source§impl TryFrom<PaymentReceipt> for PaymentReceipt
impl TryFrom<PaymentReceipt> for PaymentReceipt
Source§type Error = PaymentReceipt
type Error = PaymentReceipt
The type returned in the event of a conversion error.
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 UnsafeUnpin 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