use serde::{Deserialize, Serialize};
/// Basic master data, used OC master-data scenarios.
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
#[cfg_attr(feature = "schema", schemars(deny_unknown_fields))]
#[serde(rename_all = "camelCase")]
pub struct MasterData {
/// The commercial product Id.
/// ASCII. 45 chars max.
pub product_id: Option<String>,
/// The instance id of an associated master product, e.g. a set.
pub native_id: String,
/// Informal description.
/// UTF-8. 100 chars max.
pub description: Option<String>,
}