pub struct ReceiptLineItem {
pub amount_wei: AtomicAmount,
pub key: String,
pub quantity: f64,
pub unit: String,
pub unit_price_usd: Option<f64>,
}Expand description
ReceiptLineItem
JSON schema
{
"type": "object",
"required": [
"amount_wei",
"key",
"quantity",
"unit"
],
"properties": {
"amount_wei": {
"$ref": "#/components/schemas/AtomicAmount"
},
"key": {
"type": "string"
},
"quantity": {
"type": "number"
},
"unit": {
"type": "string"
},
"unit_price_usd": {
"type": "number"
}
},
"additionalProperties": true
}Fields§
§amount_wei: AtomicAmount§key: String§quantity: f64§unit: String§unit_price_usd: Option<f64>Implementations§
Source§impl ReceiptLineItem
impl ReceiptLineItem
pub fn builder() -> ReceiptLineItem
Trait Implementations§
Source§impl Clone for ReceiptLineItem
impl Clone for ReceiptLineItem
Source§fn clone(&self) -> ReceiptLineItem
fn clone(&self) -> ReceiptLineItem
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 ReceiptLineItem
impl Debug for ReceiptLineItem
Source§impl<'de> Deserialize<'de> for ReceiptLineItem
impl<'de> Deserialize<'de> for ReceiptLineItem
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<ReceiptLineItem> for ReceiptLineItem
impl From<ReceiptLineItem> for ReceiptLineItem
Source§fn from(value: ReceiptLineItem) -> Self
fn from(value: ReceiptLineItem) -> Self
Converts to this type from the input type.
Source§impl Serialize for ReceiptLineItem
impl Serialize for ReceiptLineItem
Source§impl TryFrom<ReceiptLineItem> for ReceiptLineItem
impl TryFrom<ReceiptLineItem> for ReceiptLineItem
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ReceiptLineItem) -> Result<Self, ConversionError>
fn try_from(value: ReceiptLineItem) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ReceiptLineItem
impl RefUnwindSafe for ReceiptLineItem
impl Send for ReceiptLineItem
impl Sync for ReceiptLineItem
impl Unpin for ReceiptLineItem
impl UnsafeUnpin for ReceiptLineItem
impl UnwindSafe for ReceiptLineItem
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