pub struct BatchRequest {
pub uri: String,
pub method: HttpMethod,
pub headers: Option<HashMap<String, String>>,
}Expand description
BatchRequest : Common properties of batch requests against individual APIs.
Fields
uri: StringThe resource path of the operation you are calling in batch without any query parameters. If you are calling getItemOffersBatch, supply the path of getItemOffers. Example: /products/pricing/v0/items/B000P6Q7MY/offers If you are calling getListingOffersBatch, supply the path of getListingOffers. Example: /products/pricing/v0/listings/B000P6Q7MY/offers
method: HttpMethodheaders: Option<HashMap<String, String>>A mapping of additional HTTP headers to send/receive for the individual batch request.
Implementations
sourceimpl BatchRequest
impl BatchRequest
sourcepub fn new(uri: String, method: HttpMethod) -> BatchRequest
pub fn new(uri: String, method: HttpMethod) -> BatchRequest
Common properties of batch requests against individual APIs.
Trait Implementations
sourceimpl Clone for BatchRequest
impl Clone for BatchRequest
sourcefn clone(&self) -> BatchRequest
fn clone(&self) -> BatchRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for BatchRequest
impl Debug for BatchRequest
sourceimpl Default for BatchRequest
impl Default for BatchRequest
sourcefn default() -> BatchRequest
fn default() -> BatchRequest
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BatchRequest
impl<'de> Deserialize<'de> for BatchRequest
sourcefn 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
sourceimpl PartialEq<BatchRequest> for BatchRequest
impl PartialEq<BatchRequest> for BatchRequest
sourcefn eq(&self, other: &BatchRequest) -> bool
fn eq(&self, other: &BatchRequest) -> bool
sourceimpl Serialize for BatchRequest
impl Serialize for BatchRequest
impl StructuralPartialEq for BatchRequest
Auto Trait Implementations
impl RefUnwindSafe for BatchRequest
impl Send for BatchRequest
impl Sync for BatchRequest
impl Unpin for BatchRequest
impl UnwindSafe for BatchRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more