pub struct AmountDetail {
pub available: String,
pub total: String,
}Expand description
Available and total amounts for a specific currency.
JSON schema
{
"description": "Available and total amounts for a specific currency.",
"type": "object",
"required": [
"available",
"total"
],
"properties": {
"available": {
"description": "The amount that is currently available to be used.",
"examples": [
"2.5"
],
"type": "string"
},
"total": {
"description": "The total amount, including the amount that is currently on hold.",
"examples": [
"3.0"
],
"type": "string"
}
}
}Fields§
§available: StringThe amount that is currently available to be used.
total: StringThe total amount, including the amount that is currently on hold.
Implementations§
Source§impl AmountDetail
impl AmountDetail
pub fn builder() -> AmountDetail
Trait Implementations§
Source§impl Clone for AmountDetail
impl Clone for AmountDetail
Source§fn clone(&self) -> AmountDetail
fn clone(&self) -> AmountDetail
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AmountDetail
impl Debug for AmountDetail
Source§impl<'de> Deserialize<'de> for AmountDetail
impl<'de> Deserialize<'de> for AmountDetail
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<&AmountDetail> for AmountDetail
impl From<&AmountDetail> for AmountDetail
Source§fn from(value: &AmountDetail) -> Self
fn from(value: &AmountDetail) -> Self
Converts to this type from the input type.
Source§impl From<AmountDetail> for AmountDetail
impl From<AmountDetail> for AmountDetail
Source§fn from(value: AmountDetail) -> Self
fn from(value: AmountDetail) -> Self
Converts to this type from the input type.
Source§impl Serialize for AmountDetail
impl Serialize for AmountDetail
Source§impl TryFrom<AmountDetail> for AmountDetail
impl TryFrom<AmountDetail> for AmountDetail
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AmountDetail) -> Result<Self, ConversionError>
fn try_from(value: AmountDetail) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AmountDetail
impl RefUnwindSafe for AmountDetail
impl Send for AmountDetail
impl Sync for AmountDetail
impl Unpin for AmountDetail
impl UnsafeUnpin for AmountDetail
impl UnwindSafe for AmountDetail
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