pub enum PaymentFormType {
Regular(PaymentFormTypeRegular),
Stars(PaymentFormTypeStars),
StarSubscription(PaymentFormTypeStarSubscription),
}Variants§
Regular(PaymentFormTypeRegular)
The payment form is for a regular payment
Stars(PaymentFormTypeStars)
The payment form is for a payment in Telegram Stars
StarSubscription(PaymentFormTypeStarSubscription)
The payment form is for a payment in Telegram Stars for subscription
Trait Implementations§
Source§impl Clone for PaymentFormType
impl Clone for PaymentFormType
Source§fn clone(&self) -> PaymentFormType
fn clone(&self) -> PaymentFormType
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 PaymentFormType
impl Debug for PaymentFormType
Source§impl<'de> Deserialize<'de> for PaymentFormType
impl<'de> Deserialize<'de> for PaymentFormType
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 PaymentFormType
impl PartialEq for PaymentFormType
Source§impl Serialize for PaymentFormType
impl Serialize for PaymentFormType
impl StructuralPartialEq for PaymentFormType
Auto Trait Implementations§
impl Freeze for PaymentFormType
impl RefUnwindSafe for PaymentFormType
impl Send for PaymentFormType
impl Sync for PaymentFormType
impl Unpin for PaymentFormType
impl UnsafeUnpin for PaymentFormType
impl UnwindSafe for PaymentFormType
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