pub struct InvoiceLine {
pub description: String,
pub amount: i64,
}Expand description
A single line item on an invoice.
Fields§
§description: StringHuman-readable description of the line item.
amount: i64Line item amount in the smallest currency unit.
Trait Implementations§
Source§impl Clone for InvoiceLine
impl Clone for InvoiceLine
Source§fn clone(&self) -> InvoiceLine
fn clone(&self) -> InvoiceLine
Returns a duplicate of the value. Read more
1.0.0 · 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 InvoiceLine
impl Debug for InvoiceLine
Source§impl<'de> Deserialize<'de> for InvoiceLine
impl<'de> Deserialize<'de> for InvoiceLine
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
Auto Trait Implementations§
impl Freeze for InvoiceLine
impl RefUnwindSafe for InvoiceLine
impl Send for InvoiceLine
impl Sync for InvoiceLine
impl Unpin for InvoiceLine
impl UnsafeUnpin for InvoiceLine
impl UnwindSafe for InvoiceLine
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