Amazon Product API in Rust: reqwest Client, serde Structs and Retries
Call an Amazon product API from Rust with reqwest and serde: one blocking client with the key in a sensitive X-Api-Key header and a 120-second timeout, typed structs for product lookup, offers and statistics, a separate type for cents so a statistics price never mixes with a decimal one, and retries that never pay twice for the same answer.