pub struct CustomerDisplayDisplayAmount {
pub amount: String,
pub currency: String,
}Expand description
The amount to present to the payer, which may differ from the authoritative settlement amount and asset. Commonly used when the payer’s local currency differs from the settlement currency (e.g., charging in USD but displaying the equivalent in CAD). Stored and returned as-is — no cross-validation is performed against the authoritative amount and asset. Both amount and currency must be provided together.
JSON schema
{
"description": "The amount to present to the payer, which may differ from the authoritative settlement amount and asset. Commonly used when the payer's local currency differs from the settlement currency (e.g., charging in USD but displaying the equivalent in CAD). Stored and returned as-is — no cross-validation is performed against the authoritative `amount` and `asset`. Both `amount` and `currency` must be provided together.",
"examples": [
{
"amount": "1.37",
"currency": "cad"
}
],
"type": "object",
"required": [
"amount",
"currency"
],
"properties": {
"amount": {
"description": "The display amount as a decimal string (e.g., `\"1.37\"`).",
"examples": [
"1.37"
],
"type": "string"
},
"currency": {
"description": "An ISO 4217 currency code in lowercase for the display amount (e.g., `cad`, `usd`).",
"examples": [
"cad"
],
"type": "string"
}
}
}Fields§
§amount: StringThe display amount as a decimal string (e.g., "1.37").
currency: StringAn ISO 4217 currency code in lowercase for the display amount (e.g., cad, usd).
Implementations§
Trait Implementations§
Source§impl Clone for CustomerDisplayDisplayAmount
impl Clone for CustomerDisplayDisplayAmount
Source§impl Debug for CustomerDisplayDisplayAmount
impl Debug for CustomerDisplayDisplayAmount
Source§impl<'de> Deserialize<'de> for CustomerDisplayDisplayAmount
impl<'de> Deserialize<'de> for CustomerDisplayDisplayAmount
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 From<&CustomerDisplayDisplayAmount> for CustomerDisplayDisplayAmount
impl From<&CustomerDisplayDisplayAmount> for CustomerDisplayDisplayAmount
Source§fn from(value: &CustomerDisplayDisplayAmount) -> Self
fn from(value: &CustomerDisplayDisplayAmount) -> Self
Converts to this type from the input type.
Source§impl From<CustomerDisplayDisplayAmount> for CustomerDisplayDisplayAmount
impl From<CustomerDisplayDisplayAmount> for CustomerDisplayDisplayAmount
Source§fn from(value: CustomerDisplayDisplayAmount) -> Self
fn from(value: CustomerDisplayDisplayAmount) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CustomerDisplayDisplayAmount> for CustomerDisplayDisplayAmount
impl TryFrom<CustomerDisplayDisplayAmount> for CustomerDisplayDisplayAmount
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: CustomerDisplayDisplayAmount,
) -> Result<Self, ConversionError>
fn try_from( value: CustomerDisplayDisplayAmount, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CustomerDisplayDisplayAmount
impl RefUnwindSafe for CustomerDisplayDisplayAmount
impl Send for CustomerDisplayDisplayAmount
impl Sync for CustomerDisplayDisplayAmount
impl Unpin for CustomerDisplayDisplayAmount
impl UnsafeUnpin for CustomerDisplayDisplayAmount
impl UnwindSafe for CustomerDisplayDisplayAmount
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