pub struct InvoiceLine {
pub amount: Option<i32>,
pub description: Option<String>,
pub quantity: Option<i32>,
pub unit_price: Option<i32>,
}Fields§
§amount: Option<i32>Amount is the line total in whole cents (250000 is $2,500.00).
description: Option<String>Description is the human-readable line, e.g. "Advisory retainer — August".
quantity: Option<i32>Quantity is the number of units, when the line is metered. Optional.
unit_price: Option<i32>UnitPrice is the per-unit price in cents, when the line is metered. Optional.
Implementations§
Source§impl InvoiceLine
impl InvoiceLine
pub fn new() -> InvoiceLine
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 (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 InvoiceLine
impl Debug for InvoiceLine
Source§impl Default for InvoiceLine
impl Default for InvoiceLine
Source§fn default() -> InvoiceLine
fn default() -> InvoiceLine
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for InvoiceLine
impl PartialEq for InvoiceLine
Source§impl Serialize for InvoiceLine
impl Serialize for InvoiceLine
impl StructuralPartialEq for InvoiceLine
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