pub struct CancelPaymentBody {
pub cancel_reason: String,
pub cancel_amount: Option<i32>,
pub refund_receive_account: Option<Account>,
pub tax_free_amount: Option<i32>,
}
Fields§
§cancel_reason: String
§cancel_amount: Option<i32>
§refund_receive_account: Option<Account>
§tax_free_amount: Option<i32>
Implementations§
Source§impl CancelPaymentBody
impl CancelPaymentBody
Sourcepub fn builder() -> CancelPaymentBodyBuilder<((), (), (), ())>
pub fn builder() -> CancelPaymentBodyBuilder<((), (), (), ())>
Create a builder for building CancelPaymentBody
.
On the builder, call .cancel_reason(...)
, .cancel_amount(...)
(optional), .refund_receive_account(...)
(optional), .tax_free_amount(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CancelPaymentBody
.
Trait Implementations§
Source§impl Clone for CancelPaymentBody
impl Clone for CancelPaymentBody
Source§fn clone(&self) -> CancelPaymentBody
fn clone(&self) -> CancelPaymentBody
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 CancelPaymentBody
impl Debug for CancelPaymentBody
Source§impl<'de> Deserialize<'de> for CancelPaymentBody
impl<'de> Deserialize<'de> for CancelPaymentBody
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 CancelPaymentBody
impl RefUnwindSafe for CancelPaymentBody
impl Send for CancelPaymentBody
impl Sync for CancelPaymentBody
impl Unpin for CancelPaymentBody
impl UnwindSafe for CancelPaymentBody
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