pub struct Item {
pub id: Option<String>,
pub name: String,
pub description: Option<String>,
pub quantity: String,
pub unit_amount: Money,
pub tax: Option<Tax>,
pub item_date: Option<DateTime<Utc>>,
pub discount: Option<Discount>,
pub unit_of_measure: Option<UnitOfMeasure>,
}
Expand description
Item information
Fields
id: Option<String>
The ID of the invoice line item. Read only.
name: String
The item name for the invoice line item.
description: Option<String>
The item description for the invoice line item.
quantity: String
The quantity of the item that the invoicer provides to the payer. Value is from -1000000 to 1000000. Supports up to five decimal places.
unit_amount: Money
The unit price of the item. This does not include tax and discount. Value is from -1000000 to 1000000. Supports up to two decimal places.
tax: Option<Tax>
The tax associated with the item. The tax amount is added to the item total. Value is from 0 to 100. Supports up to five decimal places.
item_date: Option<DateTime<Utc>>
The date when the item or service was provided, in Internet date and time format.
discount: Option<Discount>
Discount as a percent or amount at invoice level. The invoice discount amount is subtracted from the item total.
unit_of_measure: Option<UnitOfMeasure>
The unit of measure for the invoiced item. For AMOUNT the unit_amount and quantity are not shown on the invoice.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Item
impl<'de> Deserialize<'de> for Item
sourcefn 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 RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more