Struct shippo::Shippo[][src]

pub struct Shippo { /* fields omitted */ }
Expand description

Entrypoint for interacting with the Shippo API.

Implementations

Create a new Shippo client struct. It takes a type that can convert into an &str (String or Vec<u8> for example). As long as the function is given a valid API Token your requests will work.

Create a new Shippo client struct from environment variables. It takes a type that can convert into an &str (String or Vec<u8> for example). As long as the function is given a valid API Token and your requests will work.

List shipments. FROM: https://goshippo.com/docs/reference#shipments-list A maximum date range of 90 days is permitted. Provided dates should be ISO 8601 UTC dates.

Create a shipment. FROM: https://goshippo.com/docs/reference#shipments-create

List the carrier accounts. FROM: https://goshippo.com/docs/reference#carrier-accounts

Get a shipment. FROM: https://goshippo.com/docs/reference#shipments-retrieve

Create a pickup. FROM: https://goshippo.com/docs/reference#pickups-create

Create a customs item. FROM: https://goshippo.com/docs/reference#customs-items-create

Create a shipping label based on a rate. FROM: https://goshippo.com/docs/reference#transactions-create

Get a shipping label. FROM: https://goshippo.com/docs/reference#transactions-retrieve

List shiping labels. FROM: https://goshippo.com/docs/reference#transactions-list

Register a tracking webhook. You can register your webhook(s) for a Shipment (and request the current status at the same time) by POSTing to the tracking endpoint. This way Shippo will send HTTP notifications to your track_updated webhook(s) whenever the status changes. FROM: https://goshippo.com/docs/reference#tracks-create

Request the tracking status of a shipment by sending a GET request. FROM: https://goshippo.com/docs/reference#tracks-retrieve

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

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

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.