amazon_spapi/models/fba_inventory/
researching_quantity_entry.rs

1/*
2 * Selling Partner API for FBA Inventory
3 *
4 * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ResearchingQuantityEntry : The misplaced or warehouse damaged inventory that is actively being confirmed at our fulfillment centers.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ResearchingQuantityEntry {
17    /// The duration of the research.
18    #[serde(rename = "name")]
19    pub name: Name,
20    /// The number of units.
21    #[serde(rename = "quantity")]
22    pub quantity: i32,
23}
24
25impl ResearchingQuantityEntry {
26    /// The misplaced or warehouse damaged inventory that is actively being confirmed at our fulfillment centers.
27    pub fn new(name: Name, quantity: i32) -> ResearchingQuantityEntry {
28        ResearchingQuantityEntry {
29            name,
30            quantity,
31        }
32    }
33}
34/// The duration of the research.
35#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
36pub enum Name {
37    #[serde(rename = "researchingQuantityInShortTerm")]
38    ResearchingQuantityInShortTerm,
39    #[serde(rename = "researchingQuantityInMidTerm")]
40    ResearchingQuantityInMidTerm,
41    #[serde(rename = "researchingQuantityInLongTerm")]
42    ResearchingQuantityInLongTerm,
43}
44
45impl Default for Name {
46    fn default() -> Name {
47        Self::ResearchingQuantityInShortTerm
48    }
49}
50