Struct google_content2::TestOrder
source · pub struct TestOrder {
pub customer: Option<TestOrderCustomer>,
pub promotions: Option<Vec<OrderPromotion>>,
pub kind: Option<String>,
pub line_items: Option<Vec<TestOrderLineItem>>,
pub predefined_delivery_address: Option<String>,
pub shipping_cost: Option<Price>,
pub shipping_option: Option<String>,
pub shipping_cost_tax: Option<Price>,
pub payment_method: Option<TestOrderPaymentMethod>,
}Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§customer: Option<TestOrderCustomer>The details of the customer who placed the order.
promotions: Option<Vec<OrderPromotion>>The details of the merchant provided promotions applied to the order. More details about the program are here.
kind: Option<String>Identifies what kind of resource this is. Value: the fixed string “content#testOrder”.
line_items: Option<Vec<TestOrderLineItem>>Line items that are ordered. At least one line item must be provided.
predefined_delivery_address: Option<String>Identifier of one of the predefined delivery addresses for the delivery.
shipping_cost: Option<Price>The total cost of shipping for all items.
shipping_option: Option<String>The requested shipping option.
shipping_cost_tax: Option<Price>The tax for the total shipping cost.
payment_method: Option<TestOrderPaymentMethod>The details of the payment method.
Trait Implementations§
source§impl Deserialize for TestOrder
impl Deserialize for TestOrder
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
impl Part for TestOrder
Auto Trait Implementations§
impl Freeze for TestOrder
impl RefUnwindSafe for TestOrder
impl Send for TestOrder
impl Sync for TestOrder
impl Unpin for TestOrder
impl UnwindSafe for TestOrder
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