[−][src]Crate shippo
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 |
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 |
NewShipment | |
Parcel | The data type for a parcel. FROM: https://goshippo.com/docs/reference#parcels |
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. |