Struct frankenstein::objects::SuccessfulPayment
source · [−]pub struct SuccessfulPayment {
pub currency: String,
pub total_amount: u32,
pub invoice_payload: String,
pub shipping_option_id: Option<String>,
pub order_info: Option<OrderInfo>,
pub telegram_payment_charge_id: String,
pub provider_payment_charge_id: String,
}
Fields
currency: String
total_amount: u32
invoice_payload: String
shipping_option_id: Option<String>
order_info: Option<OrderInfo>
telegram_payment_charge_id: String
provider_payment_charge_id: String
Implementations
sourceimpl SuccessfulPayment
impl SuccessfulPayment
sourcepub fn builder() -> SuccessfulPaymentBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> SuccessfulPaymentBuilder<((), (), (), (), (), (), ())>
Create a builder for building SuccessfulPayment
.
On the builder, call .currency(...)
, .total_amount(...)
, .invoice_payload(...)
, .shipping_option_id(...)
(optional), .order_info(...)
(optional), .telegram_payment_charge_id(...)
, .provider_payment_charge_id(...)
to set the values of the fields.
Finally, call .build()
to create the instance of SuccessfulPayment
.
Trait Implementations
sourceimpl Clone for SuccessfulPayment
impl Clone for SuccessfulPayment
sourcefn clone(&self) -> SuccessfulPayment
fn clone(&self) -> SuccessfulPayment
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 SuccessfulPayment
impl Debug for SuccessfulPayment
sourceimpl<'de> Deserialize<'de> for SuccessfulPayment
impl<'de> Deserialize<'de> for SuccessfulPayment
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 PartialEq<SuccessfulPayment> for SuccessfulPayment
impl PartialEq<SuccessfulPayment> for SuccessfulPayment
sourcefn eq(&self, other: &SuccessfulPayment) -> bool
fn eq(&self, other: &SuccessfulPayment) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SuccessfulPayment) -> bool
fn ne(&self, other: &SuccessfulPayment) -> bool
This method tests for !=
.
sourceimpl Serialize for SuccessfulPayment
impl Serialize for SuccessfulPayment
impl StructuralPartialEq for SuccessfulPayment
Auto Trait Implementations
impl RefUnwindSafe for SuccessfulPayment
impl Send for SuccessfulPayment
impl Sync for SuccessfulPayment
impl Unpin for SuccessfulPayment
impl UnwindSafe for SuccessfulPayment
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