Crate shippo[][src]

A rust library for interacting with the Shippo API.

For more information, the Shippo API is documented at goshippo.com/docs/reference.

Example:

use serde::{Deserialize, Serialize};
use shippo::Shippo;

async fn get_shipments() {
    // Initialize the Shippo client.
    let shippo = Shippo::new_from_env();

    // List the shipments.
    let shipments = shippo.list_shipments().await.unwrap();

    // Iterate over the shipments.
    for shipment in shipments {
        println!("{:?}", shipment);
    }
}

Modules

deserialize_null_string
null_date_format

Structs

APIError

Error type returned by our library.

APIResponse

The data type for an API response.

Address

The data type for an address. FROM: https://goshippo.com/docs/reference#addresses

CustomsDeclaration

A customs declaration object. Customs declarations are relevant information, including one or multiple customs items, you need to provide for customs clearance for your international shipments. FROM: https://goshippo.com/docs/reference#customs-declarations

CustomsItem

A customs item object. Customs items are distinct items in your international shipment parcel. FROM: https://goshippo.com/docs/reference#customs-items

Location

The location data type.

Message
NewPickup
NewShipment
NewTransaction
Parcel

The data type for a parcel. FROM: https://goshippo.com/docs/reference#parcels

Pickup

The data type for a pickup. FROM: https://goshippo.com/docs/reference#pickups

Rate

The data type for a rate. A rate is an available service of a shipping provider for a given shipment, typically including the price and transit time. FROM: https://goshippo.com/docs/reference#rates

ServiceLevel

The service level data type.

Shipment

The data type for a Shipment. FROM: https://goshippo.com/docs/reference#shipments

Shippo

Entrypoint for interacting with the Shippo API.

Status
TrackingLocation
TrackingStatus

The data type for a tracking status. Tracking Status objects are used to track shipments. FROM: https://goshippo.com/docs/reference#tracks

Transaction

The data type for a transaction. A transaction is the purchase of a shipping label from a shipping provider for a specific service. FROM: https://goshippo.com/docs/reference#transactions

TransactionsAPIResponse

The data type for a transactions API response.

ValidationResults