Add struct documentation for gdsn structs
@@ -42,11 +42,13 @@ use validate::validate_product_definitons;
pub const GDSN_3_1_PROPERTY_NAME: &str = "GDSN_3_1";
#[derive(Debug, Deserialize, PartialEq)]
+// Struct used for serde deserialization of the GDSN XML elements
pub struct GridTradeItems {
#[serde(rename = "tradeItem")]
pub trade_items: Vec<TradeItem>,
}
+// Representation of a GDSN trade item, including the GTIN and GDSN XML element
#[derive(Debug, Deserialize, PartialEq)]
pub struct TradeItem {
pub gtin: String,
