Struct google_content2::OrderLineItem
source · pub struct OrderLineItem {Show 14 fields
pub product: Option<OrderLineItemProduct>,
pub quantity_delivered: Option<u32>,
pub return_info: Option<OrderLineItemReturnInfo>,
pub price: Option<Price>,
pub quantity_pending: Option<u32>,
pub tax: Option<Price>,
pub cancellations: Option<Vec<OrderCancellation>>,
pub quantity_canceled: Option<u32>,
pub id: Option<String>,
pub returns: Option<Vec<OrderReturn>>,
pub quantity_shipped: Option<u32>,
pub quantity_returned: Option<u32>,
pub quantity_ordered: Option<u32>,
pub shipping_details: Option<OrderLineItemShippingDetails>,
}Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§product: Option<OrderLineItemProduct>Product data from the time of the order placement.
quantity_delivered: Option<u32>Number of items delivered.
return_info: Option<OrderLineItemReturnInfo>Details of the return policy for the line item.
price: Option<Price>Total price for the line item. For example, if two items for $10 are purchased, the total price will be $20.
quantity_pending: Option<u32>Number of items pending.
tax: Option<Price>Total tax amount for the line item. For example, if two items are purchased, and each have a cost tax of $2, the total tax amount will be $4.
cancellations: Option<Vec<OrderCancellation>>Cancellations of the line item.
quantity_canceled: Option<u32>Number of items canceled.
id: Option<String>The id of the line item.
returns: Option<Vec<OrderReturn>>Returns of the line item.
quantity_shipped: Option<u32>Number of items shipped.
quantity_returned: Option<u32>Number of items returned.
quantity_ordered: Option<u32>Number of items ordered.
shipping_details: Option<OrderLineItemShippingDetails>Details of the requested shipping for the line item.
Trait Implementations§
source§impl Clone for OrderLineItem
impl Clone for OrderLineItem
source§fn clone(&self) -> OrderLineItem
fn clone(&self) -> OrderLineItem
Returns a copy 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 OrderLineItem
impl Debug for OrderLineItem
source§impl Default for OrderLineItem
impl Default for OrderLineItem
source§fn default() -> OrderLineItem
fn default() -> OrderLineItem
Returns the “default value” for a type. Read more
source§impl Deserialize for OrderLineItem
impl Deserialize for OrderLineItem
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for OrderLineItem
impl Serialize for OrderLineItem
impl Part for OrderLineItem
Auto Trait Implementations§
impl Freeze for OrderLineItem
impl RefUnwindSafe for OrderLineItem
impl Send for OrderLineItem
impl Sync for OrderLineItem
impl Unpin for OrderLineItem
impl UnwindSafe for OrderLineItem
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more