Struct rust_tdlib::types::PaymentReceipt
source · [−]pub struct PaymentReceipt { /* private fields */ }Expand description
Contains information about a successful payment
Implementations
sourceimpl 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
sourceimpl AsRef<PaymentReceipt> for PaymentReceipt
impl AsRef<PaymentReceipt> for PaymentReceipt
sourcefn as_ref(&self) -> &PaymentReceipt
fn as_ref(&self) -> &PaymentReceipt
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for PaymentReceipt
impl Clone for PaymentReceipt
sourcefn clone(&self) -> PaymentReceipt
fn clone(&self) -> PaymentReceipt
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PaymentReceipt
impl Debug for PaymentReceipt
sourceimpl Default for PaymentReceipt
impl Default for PaymentReceipt
sourcefn default() -> PaymentReceipt
fn default() -> PaymentReceipt
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PaymentReceipt
impl<'de> Deserialize<'de> for PaymentReceipt
sourcefn 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
sourceimpl Serialize for PaymentReceipt
impl Serialize for PaymentReceipt
Auto Trait Implementations
impl RefUnwindSafe for PaymentReceipt
impl Send for PaymentReceipt
impl Sync for PaymentReceipt
impl Unpin for PaymentReceipt
impl UnwindSafe for PaymentReceipt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more