pub enum PaymentReceiptType {
Regular(PaymentReceiptTypeRegular),
Stars(PaymentReceiptTypeStars),
}Variants§
Regular(PaymentReceiptTypeRegular)
The payment was done using a third-party payment provider
Stars(PaymentReceiptTypeStars)
The payment was done using Telegram Stars
Trait Implementations§
Source§impl Clone for PaymentReceiptType
impl Clone for PaymentReceiptType
Source§fn clone(&self) -> PaymentReceiptType
fn clone(&self) -> PaymentReceiptType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PaymentReceiptType
impl Debug for PaymentReceiptType
Source§impl<'de> Deserialize<'de> for PaymentReceiptType
impl<'de> Deserialize<'de> for PaymentReceiptType
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 PaymentReceiptType
impl PartialEq for PaymentReceiptType
Source§fn eq(&self, other: &PaymentReceiptType) -> bool
fn eq(&self, other: &PaymentReceiptType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaymentReceiptType
impl Serialize for PaymentReceiptType
impl StructuralPartialEq for PaymentReceiptType
Auto Trait Implementations§
impl Freeze for PaymentReceiptType
impl RefUnwindSafe for PaymentReceiptType
impl Send for PaymentReceiptType
impl Sync for PaymentReceiptType
impl Unpin for PaymentReceiptType
impl UnsafeUnpin for PaymentReceiptType
impl UnwindSafe for PaymentReceiptType
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