Make struct comments doc comments
@@ -38,17 +38,17 @@ use crate::protocol::{
pub use error::ProductGdsnError;
use validate::validate_product_definitions;
-// Name of the property where GDSN 3.1 XML data will be stored
+/// Name of the property where GDSN 3.1 XML data will be stored
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
+/// 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
+/// Representation of a GDSN trade item, including the GTIN and GDSN XML element
#[derive(Debug, Deserialize, PartialEq)]
pub struct TradeItem {
pub gtin: String,
