pub struct ApiEndpoint {
pub version: &'static str,
pub path: &'static str,
pub path_params: Option<Vec<(&'static str, String)>>,
pub method: ApiMethod,
pub rate: f64,
pub burst: u32,
}Expand description
Represents an SP-API endpoint with its configuration
Fields§
§version: &'static strAPI version identifier for rate limiting grouping
path: &'static strThe request path with placeholders for parameters
path_params: Option<Vec<(&'static str, String)>>Parameters Map
method: ApiMethodHTTP method
rate: f64Rate limit for this endpoint in requests per second
burst: u32Burst capacity
Implementations§
Source§impl ApiEndpoint
impl ApiEndpoint
Trait Implementations§
Source§impl Clone for ApiEndpoint
impl Clone for ApiEndpoint
Source§fn clone(&self) -> ApiEndpoint
fn clone(&self) -> ApiEndpoint
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 moreAuto Trait Implementations§
impl Freeze for ApiEndpoint
impl RefUnwindSafe for ApiEndpoint
impl Send for ApiEndpoint
impl Sync for ApiEndpoint
impl Unpin for ApiEndpoint
impl UnwindSafe for ApiEndpoint
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