pub struct ReceiptLineItem { /* private fields */ }Implementations§
Source§impl ReceiptLineItem
impl ReceiptLineItem
pub fn amount_wei<T>(self, value: T) -> Self
pub fn key<T>(self, value: T) -> Self
pub fn quantity<T>(self, value: T) -> Self
pub fn unit<T>(self, value: T) -> Self
pub fn unit_price_usd<T>(self, value: T) -> Self
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 Default for ReceiptLineItem
impl Default for ReceiptLineItem
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 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