pub struct Item {
pub id: ItemId,
pub name: Option<String>,
pub sku: Option<String>,
pub category: Option<String>,
pub active: Option<bool>,
pub quantity_on_hand: Option<u32>,
pub unknown: BTreeMap<String, Value>,
}Expand description
Gingr retail item DTO with known fields plus quarantined unknown provider keys.
Fields§
§id: ItemIdProvider record identifier observed in the Gingr payload.
name: Option<String>Provider display label retained for operator context; NVA-specific naming rules are applied downstream.
sku: Option<String>Provider SKU/code observed for the retail item and used as retail source evidence.
category: Option<String>Provider category label observed for the retail item before NVA retail taxonomy validation.
active: Option<bool>Provider active flag observed for the retail item, not an NVA-approved sellability decision.
quantity_on_hand: Option<u32>Provider quantity-on-hand observation for inventory workflows; reconciliation remains downstream.
unknown: BTreeMap<String, Value>Extra provider fields preserved for audit and future mapping without becoming validated NVA facts.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Item
impl<'de> Deserialize<'de> for Item
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 StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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