pub struct OrderShipment {
    pub carrier: Option<String>,
    pub creation_date: Option<String>,
    pub delivery_date: Option<String>,
    pub id: Option<String>,
    pub line_items: Option<Vec<OrderShipmentLineItemShipment>>,
    pub scheduled_delivery_details: Option<OrderShipmentScheduledDeliveryDetails>,
    pub status: Option<String>,
    pub tracking_id: Option<String>,
}
Expand description

There is no detailed description.

This type is not used in any activity, and only used as part of another schema.

Fields§

§carrier: Option<String>

The carrier handling the shipment. For supported carriers, Google includes the carrier name and tracking URL in emails to customers. For select supported carriers, Google also automatically updates the shipment status based on the provided shipment ID. Note: You can also use unsupported carriers, but emails to customers will not include the carrier name or tracking URL, and there will be no automatic order status updates. Supported carriers for US are: - “ups” (United Parcel Service) automatic status updates - “usps” (United States Postal Service) automatic status updates - “fedex” (FedEx) *automatic status updates * - “dhl” (DHL eCommerce) automatic status updates (US only) - “ontrac” (OnTrac) *automatic status updates * - “dhl express” (DHL Express) - “deliv” (Deliv) - “dynamex” (TForce) - “lasership” (LaserShip) - “mpx” (Military Parcel Xpress) - “uds” (United Delivery Service) - “efw” (Estes Forwarding Worldwide) - “jd logistics” (JD Logistics) - “yunexpress” (YunExpress) - “china post” (China Post) - “china ems” (China Post Express Mail Service) - “singapore post” (Singapore Post) - “pos malaysia” (Pos Malaysia) - “postnl” (PostNL) - “ptt” (PTT Turkish Post) - “eub” (ePacket) - “chukou1” (Chukou1 Logistics) - “bestex” (Best Express) - “canada post” (Canada Post) - “purolator” (Purolator) - “canpar” (Canpar) - “india post” (India Post) - “blue dart” (Blue Dart) - “delhivery” (Delhivery) - “dtdc” (DTDC) - “tpc india” (TPC India) Supported carriers for FR are: - “la poste” (La Poste) *automatic status updates * - “colissimo” (Colissimo by La Poste) automatic status updates - “ups” (United Parcel Service) *automatic status updates * - “chronopost” (Chronopost by La Poste) - “gls” (General Logistics Systems France) - “dpd” (DPD Group by GeoPost) - “bpost” (Belgian Post Group) - “colis prive” (Colis Privé) - “boxtal” (Boxtal) - “geodis” (GEODIS) - “tnt” (TNT) - “db schenker” (DB Schenker) - “aramex” (Aramex)

§creation_date: Option<String>

Date on which the shipment has been created, in ISO 8601 format.

§delivery_date: Option<String>

Date on which the shipment has been delivered, in ISO 8601 format. Present only if status is delivered

§id: Option<String>

The ID of the shipment.

§line_items: Option<Vec<OrderShipmentLineItemShipment>>

The line items that are shipped.

§scheduled_delivery_details: Option<OrderShipmentScheduledDeliveryDetails>

Delivery details of the shipment if scheduling is needed.

§status: Option<String>

The status of the shipment. Acceptable values are: - “delivered” - “readyForPickup” - “shipped” - “undeliverable

§tracking_id: Option<String>

The tracking ID for the shipment.

Trait Implementations§

source§

impl Clone for OrderShipment

source§

fn clone(&self) -> OrderShipment

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for OrderShipment

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for OrderShipment

source§

fn default() -> OrderShipment

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for OrderShipment

source§

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 OrderShipment

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Part for OrderShipment

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,