pub struct OrderDetails {
pub customer_order_number: String,
pub order_date: String,
pub order_status: Option<OrderStatus>,
pub shipment_details: Box<ShipmentDetails>,
pub tax_total: Option<Box<OrderDetailsTaxTotal>>,
pub selling_party: Box<PartyIdentification>,
pub ship_from_party: Box<PartyIdentification>,
pub ship_to_party: Box<Address>,
pub bill_to_party: Box<PartyIdentification>,
pub items: Vec<OrderItem>,
}Expand description
OrderDetails : Details of an order.
Fields
customer_order_number: StringThe customer order number.
order_date: StringThe date the order was placed. This field is expected to be in ISO-8601 date/time format, for example:2018-07-16T23:00:00Z/ 2018-07-16T23:00:00-05:00 /2018-07-16T23:00:00-08:00. If no time zone is specified, UTC should be assumed.
order_status: Option<OrderStatus>Current status of the order.
shipment_details: Box<ShipmentDetails>tax_total: Option<Box<OrderDetailsTaxTotal>>selling_party: Box<PartyIdentification>ship_from_party: Box<PartyIdentification>ship_to_party: Box<Address>bill_to_party: Box<PartyIdentification>items: Vec<OrderItem>A list of items in this purchase order.
Implementations
sourceimpl OrderDetails
impl OrderDetails
sourcepub fn new(
customer_order_number: String,
order_date: String,
shipment_details: ShipmentDetails,
selling_party: PartyIdentification,
ship_from_party: PartyIdentification,
ship_to_party: Address,
bill_to_party: PartyIdentification,
items: Vec<OrderItem>
) -> OrderDetails
pub fn new(
customer_order_number: String,
order_date: String,
shipment_details: ShipmentDetails,
selling_party: PartyIdentification,
ship_from_party: PartyIdentification,
ship_to_party: Address,
bill_to_party: PartyIdentification,
items: Vec<OrderItem>
) -> OrderDetails
Details of an order.
Trait Implementations
sourceimpl Clone for OrderDetails
impl Clone for OrderDetails
sourcefn clone(&self) -> OrderDetails
fn clone(&self) -> OrderDetails
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for OrderDetails
impl Debug for OrderDetails
sourceimpl Default for OrderDetails
impl Default for OrderDetails
sourcefn default() -> OrderDetails
fn default() -> OrderDetails
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for OrderDetails
impl<'de> Deserialize<'de> for OrderDetails
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
sourceimpl PartialEq<OrderDetails> for OrderDetails
impl PartialEq<OrderDetails> for OrderDetails
sourcefn eq(&self, other: &OrderDetails) -> bool
fn eq(&self, other: &OrderDetails) -> bool
sourceimpl Serialize for OrderDetails
impl Serialize for OrderDetails
impl StructuralPartialEq for OrderDetails
Auto Trait Implementations
impl RefUnwindSafe for OrderDetails
impl Send for OrderDetails
impl Sync for OrderDetails
impl Unpin for OrderDetails
impl UnwindSafe for OrderDetails
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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