Struct rust_tdlib::types::PaymentReceipt
source · pub struct PaymentReceipt { /* private fields */ }
Expand description
Contains information about a successful payment
Implementations§
source§impl PaymentReceipt
impl PaymentReceipt
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> PaymentReceiptBuilder
pub fn title(&self) -> &String
pub fn description(&self) -> &String
pub fn photo(&self) -> &Option<Photo>
pub fn date(&self) -> i32
pub fn seller_bot_user_id(&self) -> i64
pub fn payments_provider_user_id(&self) -> i64
pub fn invoice(&self) -> &Invoice
pub fn order_info(&self) -> &Option<OrderInfo>
pub fn shipping_option(&self) -> &Option<ShippingOption>
pub fn credentials_title(&self) -> &String
pub fn tip_amount(&self) -> i64
Trait Implementations§
source§impl AsRef<PaymentReceipt> for PaymentReceipt
impl AsRef<PaymentReceipt> for PaymentReceipt
source§fn as_ref(&self) -> &PaymentReceipt
fn as_ref(&self) -> &PaymentReceipt
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PaymentReceipt
impl Clone for PaymentReceipt
source§fn clone(&self) -> PaymentReceipt
fn clone(&self) -> PaymentReceipt
Returns a copy 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