pub struct PaymentAmountNullable {
pub currency: PaymentAmountCurrency,
pub value: f64,
}Expand description
The amount and currency of a payment
Fields§
§currency: PaymentAmountCurrencyThe ISO-4217 currency code of the payment. For standing orders and payment consents, "GBP" must be used. For Poland, Denmark, Sweden and Norway, only the local currency is currently supported.
value: f64The amount of the payment. Must contain at most two digits of precision e.g. 1.23.
Trait Implementations§
Source§impl Clone for PaymentAmountNullable
impl Clone for PaymentAmountNullable
Source§fn clone(&self) -> PaymentAmountNullable
fn clone(&self) -> PaymentAmountNullable
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 PaymentAmountNullable
impl Debug for PaymentAmountNullable
Source§impl<'de> Deserialize<'de> for PaymentAmountNullable
impl<'de> Deserialize<'de> for PaymentAmountNullable
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 Display for PaymentAmountNullable
impl Display for PaymentAmountNullable
Auto Trait Implementations§
impl Freeze for PaymentAmountNullable
impl RefUnwindSafe for PaymentAmountNullable
impl Send for PaymentAmountNullable
impl Sync for PaymentAmountNullable
impl Unpin for PaymentAmountNullable
impl UnwindSafe for PaymentAmountNullable
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