pub struct SpapiConfig {
pub client_id: String,
pub client_secret: String,
pub refresh_token: String,
pub region: Region,
pub sandbox: bool,
pub user_agent: Option<String>,
pub timeout_sec: Option<u64>,
pub rate_limit_factor: Option<f64>,
pub proxy: Option<String>,
pub retry_count: Option<usize>,
}Expand description
Configuration for the Selling Partner API client.
Fields§
§client_id: StringThe client ID provided by Amazon.
client_secret: StringThe client secret provided by Amazon.
refresh_token: StringThe refresh token for obtaining access tokens.
region: RegionThe AWS region for the Selling Partner API.
sandbox: boolWhether to use the sandbox environment.
user_agent: Option<String>Custom user agent string. If not set, a default user agent will be used.
timeout_sec: Option<u64>Request timeout in seconds. Defaults to 30 seconds if not set.
rate_limit_factor: Option<f64>Rate limit safety factor. Defaults to 1.1 if not set.
proxy: Option<String>Optional proxy URL for routing requests through a proxy server.
retry_count: Option<usize>Number of retry attempts for requests that receive a 429 status code. None or 0 means no retries.
Implementations§
Trait Implementations§
Source§impl Clone for SpapiConfig
impl Clone for SpapiConfig
Source§fn clone(&self) -> SpapiConfig
fn clone(&self) -> SpapiConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpapiConfig
impl Debug for SpapiConfig
Source§impl Default for SpapiConfig
impl Default for SpapiConfig
Source§fn default() -> SpapiConfig
fn default() -> SpapiConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpapiConfig
impl<'de> Deserialize<'de> for SpapiConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SpapiConfig
impl RefUnwindSafe for SpapiConfig
impl Send for SpapiConfig
impl Sync for SpapiConfig
impl Unpin for SpapiConfig
impl UnwindSafe for SpapiConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more