x12_alt 0.1.0

Data types for X12 EDI
Documentation
use serde::{Serialize, Deserialize};
use crate::fixed::Fixed;
use super::super::elements::CompositeUnitOfMeasure;
/**To specify quantity information

See docs at <https://www.stedi.com/edi/x12/segment/QTY>*/
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(tag = "code", rename = "QTY")]
pub struct Quantity {
    /**QTY-01 (673)
Code specifying the type of quantity*/
    pub quantity_qualifier: Fixed<2>,
    /**QTY-02 (380)
Numeric value of quantity*/
    pub quantity: Option<String>,
    /**QTY-03 (C001)
To identify a composite unit of measure

(See X12 EDI Standard Figures, https://figures.x12.org, for examples of use)*/
    pub composite_unit_of_measure: Option<CompositeUnitOfMeasure>,
    /**QTY-04 (61)
Free-form information*/
    pub free_form: Option<String>,
}
impl Quantity {}