pub struct UpdateQuoteLineItems {
pub discounts: Option<Vec<DiscountsDataParam>>,
pub id: Option<String>,
pub price: Option<String>,
pub price_data: Option<UpdateQuoteLineItemsPriceData>,
pub quantity: Option<u64>,
pub tax_rates: Option<Vec<String>>,
}
Expand description
A list of line items the customer is being quoted for. Each line item includes information about the product, the quantity, and the resulting cost.
Fields§
§discounts: Option<Vec<DiscountsDataParam>>
The discounts applied to this line item.
id: Option<String>
The ID of an existing line item on the quote.
price: Option<String>
The ID of the price object. One of price
or price_data
is required.
price_data: Option<UpdateQuoteLineItemsPriceData>
Data used to generate a new Price object inline.
One of price
or price_data
is required.
quantity: Option<u64>
The quantity of the line item.
tax_rates: Option<Vec<String>>
The tax rates which apply to the line item.
When set, the default_tax_rates
on the quote do not apply to this line item.
Implementations§
Trait Implementations§
Source§impl Clone for UpdateQuoteLineItems
impl Clone for UpdateQuoteLineItems
Source§fn clone(&self) -> UpdateQuoteLineItems
fn clone(&self) -> UpdateQuoteLineItems
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 UpdateQuoteLineItems
impl Debug for UpdateQuoteLineItems
Source§impl Default for UpdateQuoteLineItems
impl Default for UpdateQuoteLineItems
Auto Trait Implementations§
impl Freeze for UpdateQuoteLineItems
impl RefUnwindSafe for UpdateQuoteLineItems
impl Send for UpdateQuoteLineItems
impl Sync for UpdateQuoteLineItems
impl Unpin for UpdateQuoteLineItems
impl UnwindSafe for UpdateQuoteLineItems
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