Expand description
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§
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
- Carrier
Account - The data type for a carrier account. FROM: https://goshippo.com/docs/reference#carrier-accounts
- Carrier
AccountsAPI Response - The data type for an API response for carrier accounts.
- Customs
Declaration - 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
- Customs
Item - 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
- Order
- An order object. FROM: https://goshippo.com/docs/reference#orders
- OrdersAPI
Response - The data type for an API response.
- 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
- Service
Level - 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
- Tracking
Location - Tracking
Status - 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
- TransactionsAPI
Response - The data type for a transactions API response.
- Validation
Results