pub struct ReceiptBody {
pub final_amount_wei: Option<AtomicAmount>,
pub line_items: Vec<ReceiptLineItem>,
pub network: Option<ChainNetwork>,
pub platform_fee_wei: Option<AtomicAmount>,
pub provider_amount_wei: Option<AtomicAmount>,
pub settled_at: Option<i64>,
pub subject: Option<String>,
pub tx_hash: Option<String>,
}Expand description
ReceiptBody
JSON schema
{
"type": "object",
"properties": {
"final_amount_wei": {
"$ref": "#/components/schemas/AtomicAmount"
},
"line_items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ReceiptLineItem"
}
},
"network": {
"$ref": "#/components/schemas/ChainNetwork"
},
"platform_fee_wei": {
"$ref": "#/components/schemas/AtomicAmount"
},
"provider_amount_wei": {
"$ref": "#/components/schemas/AtomicAmount"
},
"settled_at": {
"type": "integer"
},
"subject": {
"type": "string"
},
"tx_hash": {
"type": "string"
}
},
"additionalProperties": true
}Fields§
§final_amount_wei: Option<AtomicAmount>§line_items: Vec<ReceiptLineItem>§network: Option<ChainNetwork>§platform_fee_wei: Option<AtomicAmount>§provider_amount_wei: Option<AtomicAmount>§settled_at: Option<i64>§subject: Option<String>§tx_hash: Option<String>Implementations§
Source§impl ReceiptBody
impl ReceiptBody
pub fn builder() -> ReceiptBody
Trait Implementations§
Source§impl Clone for ReceiptBody
impl Clone for ReceiptBody
Source§fn clone(&self) -> ReceiptBody
fn clone(&self) -> ReceiptBody
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 ReceiptBody
impl Debug for ReceiptBody
Source§impl Default for ReceiptBody
impl Default for ReceiptBody
Source§impl<'de> Deserialize<'de> for ReceiptBody
impl<'de> Deserialize<'de> for ReceiptBody
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<ReceiptBody> for ReceiptBody
impl From<ReceiptBody> for ReceiptBody
Source§fn from(value: ReceiptBody) -> Self
fn from(value: ReceiptBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for ReceiptBody
impl Serialize for ReceiptBody
Source§impl TryFrom<ReceiptBody> for ReceiptBody
impl TryFrom<ReceiptBody> for ReceiptBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ReceiptBody) -> Result<Self, ConversionError>
fn try_from(value: ReceiptBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ReceiptBody
impl RefUnwindSafe for ReceiptBody
impl Send for ReceiptBody
impl Sync for ReceiptBody
impl Unpin for ReceiptBody
impl UnsafeUnpin for ReceiptBody
impl UnwindSafe for ReceiptBody
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