pub struct TestOrderLineItem {
pub product: Option<TestOrderLineItemProduct>,
pub quantity_ordered: Option<u32>,
pub return_info: Option<OrderLineItemReturnInfo>,
pub shipping_details: Option<OrderLineItemShippingDetails>,
pub unit_tax: Option<Price>,
}
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<TestOrderLineItemProduct>
Required. Product data from the time of the order placement.
quantity_ordered: Option<u32>
Required. Number of items ordered.
return_info: Option<OrderLineItemReturnInfo>
Required. Details of the return policy for the line item.
shipping_details: Option<OrderLineItemShippingDetails>
Required. Details of the requested shipping for the line item.
unit_tax: Option<Price>
Deprecated. Ignored if provided.
Trait Implementations§
Source§impl Clone for TestOrderLineItem
impl Clone for TestOrderLineItem
Source§fn clone(&self) -> TestOrderLineItem
fn clone(&self) -> TestOrderLineItem
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 TestOrderLineItem
impl Debug for TestOrderLineItem
Source§impl Default for TestOrderLineItem
impl Default for TestOrderLineItem
Source§fn default() -> TestOrderLineItem
fn default() -> TestOrderLineItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TestOrderLineItem
impl<'de> Deserialize<'de> for TestOrderLineItem
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 Serialize for TestOrderLineItem
impl Serialize for TestOrderLineItem
impl Part for TestOrderLineItem
Auto Trait Implementations§
impl Freeze for TestOrderLineItem
impl RefUnwindSafe for TestOrderLineItem
impl Send for TestOrderLineItem
impl Sync for TestOrderLineItem
impl Unpin for TestOrderLineItem
impl UnwindSafe for TestOrderLineItem
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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