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
Auto Trait Implementations§
impl Freeze for PaymentReceipt
impl RefUnwindSafe for PaymentReceipt
impl Send for PaymentReceipt
impl Sync for PaymentReceipt
impl Unpin 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