pub struct ProductsCustomBatchRequestEntry {
pub batch_id: Option<u32>,
pub merchant_id: Option<u64>,
pub method: Option<String>,
pub product: Option<Product>,
pub product_id: Option<String>,
}
Expand description
A batch entry encoding a single non-batch products request.
This type is not used in any activity, and only used as part of another schema.
Fields§
§batch_id: Option<u32>
An entry ID, unique within the batch request.
merchant_id: Option<u64>
The ID of the managing account.
method: Option<String>
The method of the batch entry. Acceptable values are: - “delete
” - “get
” - “insert
”
product: Option<Product>
The product to insert. Only required if the method is insert
.
product_id: Option<String>
The ID of the product to get or delete. Only defined if the method is get
or delete
.
Trait Implementations§
source§impl Clone for ProductsCustomBatchRequestEntry
impl Clone for ProductsCustomBatchRequestEntry
source§fn clone(&self) -> ProductsCustomBatchRequestEntry
fn clone(&self) -> ProductsCustomBatchRequestEntry
Returns a copy 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 Default for ProductsCustomBatchRequestEntry
impl Default for ProductsCustomBatchRequestEntry
source§fn default() -> ProductsCustomBatchRequestEntry
fn default() -> ProductsCustomBatchRequestEntry
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ProductsCustomBatchRequestEntry
impl<'de> Deserialize<'de> for ProductsCustomBatchRequestEntry
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
impl Part for ProductsCustomBatchRequestEntry
Auto Trait Implementations§
impl RefUnwindSafe for ProductsCustomBatchRequestEntry
impl Send for ProductsCustomBatchRequestEntry
impl Sync for ProductsCustomBatchRequestEntry
impl Unpin for ProductsCustomBatchRequestEntry
impl UnwindSafe for ProductsCustomBatchRequestEntry
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