1#![allow(non_camel_case_types)]
2
3#[cfg_attr(feature = "specta", derive(specta::Type))]
4#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
5#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Hash)]
6pub enum Characteristic {
7 ConsolidatedWeight,
13 NetWeight,
19 GoodsItemGrossWeight,
25 TotalNetWeight,
31 ConsignmentGrossWeight,
37 NetNetWeight,
43 SternThrust,
49 BowThrust,
55 HydrateContentAnAlcoholicProductAtBottling,
61 NumberUnitsPerPallet,
67 FatContent,
73 TransportMeansGrossWeight,
79 NetTonnageVessel,
85 Humidity,
91 Voltage,
97 PowerConsumption,
103 HeatDissipation,
109 AirFlow,
115 ShockImpact,
121 OperativeTemperature,
127 NonOperativeTemperature,
133 GrossVolume,
139 NetVolume,
145 WaterContent,
151 TensileStress,
157 Fibrosity,
163 GaugeLength,
169 Radius,
175 Straightness,
181 Strain,
187 ItemWidthWhenUnrolled,
193 ItemLengthWhenUnrolled,
199 ItemAreaWhenUnrolled,
205 OriginalWort,
211 Volume,
217 Angle,
223 PegHoleHorizontalDistanceFromPackageLeftmostEdge,
229 PegHoleVerticalDistanceFromPackageTop,
235 NumberLayersPerPallet,
241 ProductStrenghChemical,
247 ProductStrengthBasisChemical,
253 ItemWeight,
259 PayloadWeightMaximum,
265 WeightConveyance,
271 ConveyanceSummerDeadWeight,
277 ContainerizedCargoOnVesselsWeight,
283 NonContainerizedCargoOnVesselsWeight,
289 AscertainedWeight,
295 ChargeableWeight,
301 EstimatedGrossWeight,
307 EstimatedVolume,
313 VesselOverallLength,
319 LoadingMeters,
325 NumberAxles,
331 Payload,
337 StartPositionInLength,
343 EndPositionInLength,
349 StartPositionInWidth,
355 EndPositionInWidth,
361 StartPositionInThickness,
367 EndPositionInThickness,
373 TransportContainerActualFillingWeight,
379 TransportContainerMaximumCapacity,
385 DeclaredNetWeight,
391 LoadingHeight,
397 StackingHeight,
403 CalculatedWeight,
409 Ferrite,
415 Impurity,
421 GrainSize,
427 Lanthanides,
433 Elasticity,
439 DrainedWeight,
445 Gallium,
451 Strontium,
457 Area,
463 EquipmentStorageLimitation,
469 RadioactiveIndexTransport,
475 Radioactivity,
481 AverageGrossWeight,
487 ForwardDraft,
493 AfterDraft,
499 Acidity,
505 TransportEquipmentGrossWeight,
511 TotalTransportEquipmentGrossWeight,
517 AcidityJuice,
523 Penetrometry,
529 Durofel,
535 JuiceWeightPer100Grams,
541 FruitSkinColour,
547 AngleBend,
553 FixedIncrementalMeasurement,
559 DurofelD10,
565 DurofelD25,
571 DurofelD50,
577 MaximumStackingWeight,
583 GrossMeasureCube,
589 PercentageFatContentInDryMatter,
595 SaccharometricContent,
601 HydrateContentAnAlcoholicProductAfterBottling,
607 AnhydrousContent,
613 CertifiedWeight,
619 Freeboard,
625 MaximumVesselDraught,
631 NetExplosiveWeight,
637 RadioactiveCriticalitySafetyIndex,
643 WasteCurrentlyOnBoard,
649 WasteToBeDeliveredAtWasteReceptionFacility,
655 WasteToBeGeneratedUntilNextPortCallEstimated,
661 WasteRemainingOnBoardAtDeparture,
667 ColourDepth,
673 ColourDepthMaximum,
679 ImageResolution,
685 DeviceResolutionMaximum,
691 AcousticAbsorptionCoefficient,
697 BilledWeight,
703 BreakingLoad,
709 Platinum,
715 Silver,
721 List,
727 Trim,
733 FreeWater,
739 Bands,
745 ApiAmericanPetroleumInstituteGravity,
751 PetroleumGrossObservedVolume,
757 PetroleumGrossStandardVolume,
763 VolumeVariance,
769 PetroleumNetStandardVolume,
775 MaterialOnBoardQuantityAfterDischarge,
781 PetroleumTotalCalculatedVolume,
787 PetroleumTotalObservedVolume,
793 InnageGaugeDistance,
799 PetroleumNetStandardWeight,
805 SedimentAndWaterInPetroleum,
811 ObservedReferenceHeightTank,
817 ReferenceHeightTank,
823 UllageGaugeDistance,
829 TrimCorrection,
835 BowToBridgeDistance,
841 PegHoleNumber,
847 NumberInnerPacks,
853 NumberNextLevelTradeItemsWithinInnerPack,
859 NumberTradeItemsPerPalletLayer,
865 PackedItemsLayerHeight,
871 PackingMaterialWeightSkinTightCovering,
877 Brightness,
883 Brakes,
889 ComponentsLabelledForRecyclingPercentage,
895 RenewablePlasticComponentsPercentageByNetWeight,
901 ClampPressureRequired,
907 Break,
913 AscertainedVolume,
919 UnitWeight,
925 TotalVolume,
931 UnitVolume,
937 VerticalCenterGravity,
943 MaximumAllowableTransportStackingWeight,
949 CarbonDioxide,
955 NumberBaseUnitsPerPallet,
961 ColonyFormingUnit,
967 DilutedLiquidVolume,
973 EnergyEfficiency,
979 NumberLayers,
985 MaximumDemand,
991 NumberPalletPlaces,
997 PackageNetMeasurementCubed,
1003 PowerFactor,
1009 StackingFactorExcludingBottomItem,
1015 BreakingStrength,
1021 BreakingStrengthWet,
1027 StepSize,
1033 NumberUnitsPerPackage,
1039 NumberUnitsPerLayer,
1045 WeightPerRunningMetre,
1051 WeightPerSquareMetre,
1057 AcidityMeat,
1063 SlaughteringWeight,
1069 StackingFactorIncludingBottomItem,
1075 NumberUnitsInWidthALayer,
1081 NumberUnitsInDepthALayer,
1087 NestablePercentage,
1093 GrossWeightIncludingCarriersEquipment,
1099 SugarContent,
1105 SelfAcceleratingPolymerizationTemperatureSapt,
1111 SelfAcceleratingDecompositionTemperatureSadt,
1117 ControlTemperature,
1123 BasisWeight,
1129 Change,
1135 EmergencyTemperature,
1141 Colour,
1147 ContentsPackage,
1153 CommercialWeight,
1159 CoreLength,
1165 DestinationWeightAgreement,
1171 Diameter,
1177 DeltaValueL,
1183 Density,
1189 Depth,
1195 Denier,
1201 DistanceBetweenPoints,
1207 WidthBoxcarDoor,
1213 EstimatedNewWeight,
1219 Elongation,
1225 DeficitWeight,
1231 FilamentCount,
1237 LongitudinalFlatness,
1243 Flatness,
1249 TransverseFlatness,
1255 Gauge,
1261 GrossWeightMaximum,
1267 Hardness,
1273 HeightMaximum,
1279 HeightDimension,
1285 ImpactEnergy,
1291 InsideDiameter,
1297 LegalWeight,
1303 LengthMaximum,
1309 Length,
1315 LostEnd,
1321 MinimumWeight,
1327 Moisture,
1333 MaximumWeight,
1339 ActualNetWeight,
1345 OutsideDiameter,
1351 PreStretch,
1357 PerTonne,
1363 RelativeHumidity,
1369 Resistivity,
1375 RockwellC,
1381 ReamWeight,
1387 ReductionArea,
1393 RunProcess,
1399 Ratio,
1405 ShippedQuantity,
1411 TareWeight,
1417 Temperature,
1423 Thickness,
1429 TimePeriod,
1435 Time,
1441 TransportEquipmentVerifiedGrossMassWeight,
1447 HeightVanDoor,
1453 WidthVanDoor,
1459 WeightPerUnitArea,
1465 WidthDimension,
1471 WidthMaximum,
1477 WeightPerUnitLength,
1483 SideHeightFlatBedWithRemovableSides,
1489 Squareness,
1495 SpoolSize,
1501 YieldStress,
1507 Aluminium,
1513 Arsenic,
1519 Boron,
1525 Bismuth,
1531 Carbon,
1537 Calcium,
1543 Columbium,
1549 Cerium,
1555 Chlorine,
1561 Cobalt,
1567 Chromium,
1573 Copper,
1579 Iron,
1585 IronPlusSilicon,
1591 Germanium,
1597 Hydrogen,
1603 Potassium,
1609 Magnesium,
1615 Manganese,
1621 Molybdenum,
1627 Nitrogen,
1633 Sodium,
1639 Niobium,
1645 Nickel,
1651 Oxygen,
1657 Phosphorus,
1663 Lead,
1669 Sulphur,
1675 Antimony,
1681 Selenium,
1687 Silicon,
1693 SiliciumOxyd,
1699 Tin,
1705 Tantalium,
1711 Tellurium,
1717 Titanium,
1723 Vanadium,
1729 Tungsten,
1735 WasteContent,
1741 Zinc,
1747 Zirconium,
1753 MutuallyDefined,
1759 BestBeforeDate,
1763 ColourAsText,
1767 CommissionIndicator,
1773 DepositSystem,
1779 DepositType,
1785 EnergyEfficiencyClass,
1789 ExpirationDate,
1793 FeeIndicator,
1799 TypeArticle,
1805 MaterialProduct,
1809 MeteringPointDesignationEGForElectricityOrGas,
1813 MeterNumberEGForElectricityOrGas,
1817 OrganicControlBodyNumber,
1821 PackagingMaterial,
1825 TypePackagingCode,
1831 NumberActionVariant,
1835 SealNumber,
1839 SizeCode,
1845 SizeDesignation,
1851 TypeTradingUnit,
1857 WasteCodeEwc,
1863 WasteFraction,
1867 WeeeRegistrationNumber,
1873}
1874
1875impl std::fmt::Display for Characteristic {
1876 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1877 write!(f, "{}", <Self as crate::Code>::code(*self))
1878 }
1879}
1880
1881impl std::str::FromStr for Characteristic {
1882 type Err = crate::ParseError<Self>;
1883 fn from_str(s: &str) -> Result<Self, Self::Err> {
1884 <Self as crate::FromCode>::from_code(s)
1885 .ok_or_else(|| crate::ParseError::<Self>::new(s.to_owned()))
1886 }
1887}
1888
1889impl crate::Code for Characteristic {
1890 fn code(self) -> &'static str {
1891 match self {
1892 Characteristic::ConsolidatedWeight => "A",
1893 Characteristic::NetWeight => "AAA",
1894 Characteristic::GoodsItemGrossWeight => "AAB",
1895 Characteristic::TotalNetWeight => "AAC",
1896 Characteristic::ConsignmentGrossWeight => "AAD",
1897 Characteristic::NetNetWeight => "AAF",
1898 Characteristic::SternThrust => "AAG",
1899 Characteristic::BowThrust => "AAH",
1900 Characteristic::HydrateContentAnAlcoholicProductAtBottling => "AAI",
1901 Characteristic::NumberUnitsPerPallet => "AAJ",
1902 Characteristic::FatContent => "AAK",
1903 Characteristic::TransportMeansGrossWeight => "AAM",
1904 Characteristic::NetTonnageVessel => "AAN",
1905 Characteristic::Humidity => "AAO",
1906 Characteristic::Voltage => "AAP",
1907 Characteristic::PowerConsumption => "AAQ",
1908 Characteristic::HeatDissipation => "AAR",
1909 Characteristic::AirFlow => "AAS",
1910 Characteristic::ShockImpact => "AAT",
1911 Characteristic::OperativeTemperature => "AAU",
1912 Characteristic::NonOperativeTemperature => "AAV",
1913 Characteristic::GrossVolume => "AAW",
1914 Characteristic::NetVolume => "AAX",
1915 Characteristic::WaterContent => "AAY",
1916 Characteristic::TensileStress => "AAZ",
1917 Characteristic::Fibrosity => "ABA",
1918 Characteristic::GaugeLength => "ABB",
1919 Characteristic::Radius => "ABC",
1920 Characteristic::Straightness => "ABD",
1921 Characteristic::Strain => "ABE",
1922 Characteristic::ItemWidthWhenUnrolled => "ABF",
1923 Characteristic::ItemLengthWhenUnrolled => "ABG",
1924 Characteristic::ItemAreaWhenUnrolled => "ABH",
1925 Characteristic::OriginalWort => "ABI",
1926 Characteristic::Volume => "ABJ",
1927 Characteristic::Angle => "ABK",
1928 Characteristic::PegHoleHorizontalDistanceFromPackageLeftmostEdge => "ABL",
1929 Characteristic::PegHoleVerticalDistanceFromPackageTop => "ABM",
1930 Characteristic::NumberLayersPerPallet => "ABN",
1931 Characteristic::ProductStrenghChemical => "ABO",
1932 Characteristic::ProductStrengthBasisChemical => "ABP",
1933 Characteristic::ItemWeight => "ABS",
1934 Characteristic::PayloadWeightMaximum => "ABT",
1935 Characteristic::WeightConveyance => "ABX",
1936 Characteristic::ConveyanceSummerDeadWeight => "ABY",
1937 Characteristic::ContainerizedCargoOnVesselsWeight => "ABZ",
1938 Characteristic::NonContainerizedCargoOnVesselsWeight => "ACA",
1939 Characteristic::AscertainedWeight => "ACE",
1940 Characteristic::ChargeableWeight => "ACG",
1941 Characteristic::EstimatedGrossWeight => "ACN",
1942 Characteristic::EstimatedVolume => "ACP",
1943 Characteristic::VesselOverallLength => "ACS",
1944 Characteristic::LoadingMeters => "ACV",
1945 Characteristic::NumberAxles => "ACW",
1946 Characteristic::Payload => "ACX",
1947 Characteristic::StartPositionInLength => "ADR",
1948 Characteristic::EndPositionInLength => "ADS",
1949 Characteristic::StartPositionInWidth => "ADT",
1950 Characteristic::EndPositionInWidth => "ADU",
1951 Characteristic::StartPositionInThickness => "ADV",
1952 Characteristic::EndPositionInThickness => "ADW",
1953 Characteristic::TransportContainerActualFillingWeight => "ADX",
1954 Characteristic::TransportContainerMaximumCapacity => "ADY",
1955 Characteristic::DeclaredNetWeight => "ADZ",
1956 Characteristic::LoadingHeight => "AEA",
1957 Characteristic::StackingHeight => "AEB",
1958 Characteristic::CalculatedWeight => "AEC",
1959 Characteristic::Ferrite => "AED",
1960 Characteristic::Impurity => "AEE",
1961 Characteristic::GrainSize => "AEF",
1962 Characteristic::Lanthanides => "AEG",
1963 Characteristic::Elasticity => "AEH",
1964 Characteristic::DrainedWeight => "AEI",
1965 Characteristic::Gallium => "AEJ",
1966 Characteristic::Strontium => "AEK",
1967 Characteristic::Area => "AEL",
1968 Characteristic::EquipmentStorageLimitation => "AEM",
1969 Characteristic::RadioactiveIndexTransport => "AEN",
1970 Characteristic::Radioactivity => "AEO",
1971 Characteristic::AverageGrossWeight => "AEP",
1972 Characteristic::ForwardDraft => "AEQ",
1973 Characteristic::AfterDraft => "AER",
1974 Characteristic::Acidity => "AES",
1975 Characteristic::TransportEquipmentGrossWeight => "AET",
1976 Characteristic::TotalTransportEquipmentGrossWeight => "AEU",
1977 Characteristic::AcidityJuice => "AEV",
1978 Characteristic::Penetrometry => "AEW",
1979 Characteristic::Durofel => "AEX",
1980 Characteristic::JuiceWeightPer100Grams => "AEY",
1981 Characteristic::FruitSkinColour => "AEZ",
1982 Characteristic::AngleBend => "AF",
1983 Characteristic::FixedIncrementalMeasurement => "AFA",
1984 Characteristic::DurofelD10 => "AFB",
1985 Characteristic::DurofelD25 => "AFC",
1986 Characteristic::DurofelD50 => "AFD",
1987 Characteristic::MaximumStackingWeight => "AFE",
1988 Characteristic::GrossMeasureCube => "AFF",
1989 Characteristic::PercentageFatContentInDryMatter => "AFG",
1990 Characteristic::SaccharometricContent => "AFH",
1991 Characteristic::HydrateContentAnAlcoholicProductAfterBottling => "AFI",
1992 Characteristic::AnhydrousContent => "AFJ",
1993 Characteristic::CertifiedWeight => "AFK",
1994 Characteristic::Freeboard => "AFL",
1995 Characteristic::MaximumVesselDraught => "AFM",
1996 Characteristic::NetExplosiveWeight => "AFN",
1997 Characteristic::RadioactiveCriticalitySafetyIndex => "AFO",
1998 Characteristic::WasteCurrentlyOnBoard => "AFP",
1999 Characteristic::WasteToBeDeliveredAtWasteReceptionFacility => "AFQ",
2000 Characteristic::WasteToBeGeneratedUntilNextPortCallEstimated => "AFR",
2001 Characteristic::WasteRemainingOnBoardAtDeparture => "AFS",
2002 Characteristic::ColourDepth => "AFT",
2003 Characteristic::ColourDepthMaximum => "AFU",
2004 Characteristic::ImageResolution => "AFV",
2005 Characteristic::DeviceResolutionMaximum => "AFW",
2006 Characteristic::AcousticAbsorptionCoefficient => "AFX",
2007 Characteristic::BilledWeight => "B",
2008 Characteristic::BreakingLoad => "BL",
2009 Characteristic::Platinum => "BMY",
2010 Characteristic::Silver => "BMZ",
2011 Characteristic::List => "BNA",
2012 Characteristic::Trim => "BNB",
2013 Characteristic::FreeWater => "BNC",
2014 Characteristic::Bands => "BND",
2015 Characteristic::ApiAmericanPetroleumInstituteGravity => "BNE",
2016 Characteristic::PetroleumGrossObservedVolume => "BNF",
2017 Characteristic::PetroleumGrossStandardVolume => "BNG",
2018 Characteristic::VolumeVariance => "BNH",
2019 Characteristic::PetroleumNetStandardVolume => "BNI",
2020 Characteristic::MaterialOnBoardQuantityAfterDischarge => "BNJ",
2021 Characteristic::PetroleumTotalCalculatedVolume => "BNK",
2022 Characteristic::PetroleumTotalObservedVolume => "BNL",
2023 Characteristic::InnageGaugeDistance => "BNM",
2024 Characteristic::PetroleumNetStandardWeight => "BNN",
2025 Characteristic::SedimentAndWaterInPetroleum => "BNO",
2026 Characteristic::ObservedReferenceHeightTank => "BNP",
2027 Characteristic::ReferenceHeightTank => "BNQ",
2028 Characteristic::UllageGaugeDistance => "BNR",
2029 Characteristic::TrimCorrection => "BNS",
2030 Characteristic::BowToBridgeDistance => "BNT",
2031 Characteristic::PegHoleNumber => "BNU",
2032 Characteristic::NumberInnerPacks => "BNV",
2033 Characteristic::NumberNextLevelTradeItemsWithinInnerPack => "BNW",
2034 Characteristic::NumberTradeItemsPerPalletLayer => "BNX",
2035 Characteristic::PackedItemsLayerHeight => "BNY",
2036 Characteristic::PackingMaterialWeightSkinTightCovering => "BNZ",
2037 Characteristic::Brightness => "BR",
2038 Characteristic::Brakes => "BRA",
2039 Characteristic::ComponentsLabelledForRecyclingPercentage => "BRB",
2040 Characteristic::RenewablePlasticComponentsPercentageByNetWeight => "BRC",
2041 Characteristic::ClampPressureRequired => "BRD",
2042 Characteristic::Break => "BRE",
2043 Characteristic::AscertainedVolume => "BRF",
2044 Characteristic::UnitWeight => "BRG",
2045 Characteristic::TotalVolume => "BRH",
2046 Characteristic::UnitVolume => "BRI",
2047 Characteristic::VerticalCenterGravity => "BRJ",
2048 Characteristic::MaximumAllowableTransportStackingWeight => "BRK",
2049 Characteristic::CarbonDioxide => "BRL",
2050 Characteristic::NumberBaseUnitsPerPallet => "BRM",
2051 Characteristic::ColonyFormingUnit => "BRN",
2052 Characteristic::DilutedLiquidVolume => "BRO",
2053 Characteristic::EnergyEfficiency => "BRP",
2054 Characteristic::NumberLayers => "BRQ",
2055 Characteristic::MaximumDemand => "BRR",
2056 Characteristic::NumberPalletPlaces => "BRS",
2057 Characteristic::PackageNetMeasurementCubed => "BRT",
2058 Characteristic::PowerFactor => "BRU",
2059 Characteristic::StackingFactorExcludingBottomItem => "BRV",
2060 Characteristic::BreakingStrength => "BS",
2061 Characteristic::BreakingStrengthWet => "BSW",
2062 Characteristic::StepSize => "BSX",
2063 Characteristic::NumberUnitsPerPackage => "BSY",
2064 Characteristic::NumberUnitsPerLayer => "BSZ",
2065 Characteristic::WeightPerRunningMetre => "BTA",
2066 Characteristic::WeightPerSquareMetre => "BTB",
2067 Characteristic::AcidityMeat => "BTC",
2068 Characteristic::SlaughteringWeight => "BTD",
2069 Characteristic::StackingFactorIncludingBottomItem => "BTE",
2070 Characteristic::NumberUnitsInWidthALayer => "BTF",
2071 Characteristic::NumberUnitsInDepthALayer => "BTG",
2072 Characteristic::NestablePercentage => "BTH",
2073 Characteristic::GrossWeightIncludingCarriersEquipment => "BTI",
2074 Characteristic::SugarContent => "BTJ",
2075 Characteristic::SelfAcceleratingPolymerizationTemperatureSapt => "BTK",
2076 Characteristic::SelfAcceleratingDecompositionTemperatureSadt => "BTL",
2077 Characteristic::ControlTemperature => "BTM",
2078 Characteristic::BasisWeight => "BW",
2079 Characteristic::Change => "CHN",
2080 Characteristic::EmergencyTemperature => "CHO",
2081 Characteristic::Colour => "CM",
2082 Characteristic::ContentsPackage => "CT",
2083 Characteristic::CommercialWeight => "CV",
2084 Characteristic::CoreLength => "CZ",
2085 Characteristic::DestinationWeightAgreement => "D",
2086 Characteristic::Diameter => "DI",
2087 Characteristic::DeltaValueL => "DL",
2088 Characteristic::Density => "DN",
2089 Characteristic::Depth => "DP",
2090 Characteristic::Denier => "DR",
2091 Characteristic::DistanceBetweenPoints => "DS",
2092 Characteristic::WidthBoxcarDoor => "DW",
2093 Characteristic::EstimatedNewWeight => "E",
2094 Characteristic::Elongation => "EA",
2095 Characteristic::DeficitWeight => "F",
2096 Characteristic::FilamentCount => "FI",
2097 Characteristic::LongitudinalFlatness => "FL",
2098 Characteristic::Flatness => "FN",
2099 Characteristic::TransverseFlatness => "FV",
2100 Characteristic::Gauge => "GG",
2101 Characteristic::GrossWeightMaximum => "GW",
2102 Characteristic::Hardness => "HF",
2103 Characteristic::HeightMaximum => "HM",
2104 Characteristic::HeightDimension => "HT",
2105 Characteristic::ImpactEnergy => "IB",
2106 Characteristic::InsideDiameter => "ID",
2107 Characteristic::LegalWeight => "L",
2108 Characteristic::LengthMaximum => "LM",
2109 Characteristic::Length => "LN",
2110 Characteristic::LostEnd => "LND",
2111 Characteristic::MinimumWeight => "M",
2112 Characteristic::Moisture => "MO",
2113 Characteristic::MaximumWeight => "MW",
2114 Characteristic::ActualNetWeight => "N",
2115 Characteristic::OutsideDiameter => "OD",
2116 Characteristic::PreStretch => "PRS",
2117 Characteristic::PerTonne => "PTN",
2118 Characteristic::RelativeHumidity => "RA",
2119 Characteristic::Resistivity => "RF",
2120 Characteristic::RockwellC => "RJ",
2121 Characteristic::ReamWeight => "RMW",
2122 Characteristic::ReductionArea => "RP",
2123 Characteristic::RunProcess => "RUN",
2124 Characteristic::Ratio => "RY",
2125 Characteristic::ShippedQuantity => "SQ",
2126 Characteristic::TareWeight => "T",
2127 Characteristic::Temperature => "TC",
2128 Characteristic::Thickness => "TH",
2129 Characteristic::TimePeriod => "TN",
2130 Characteristic::Time => "TT",
2131 Characteristic::TransportEquipmentVerifiedGrossMassWeight => "VGM",
2132 Characteristic::HeightVanDoor => "VH",
2133 Characteristic::WidthVanDoor => "VW",
2134 Characteristic::WeightPerUnitArea => "WA",
2135 Characteristic::WidthDimension => "WD",
2136 Characteristic::WidthMaximum => "WM",
2137 Characteristic::WeightPerUnitLength => "WU",
2138 Characteristic::SideHeightFlatBedWithRemovableSides => "XH",
2139 Characteristic::Squareness => "XQ",
2140 Characteristic::SpoolSize => "XZ",
2141 Characteristic::YieldStress => "YS",
2142 Characteristic::Aluminium => "ZAL",
2143 Characteristic::Arsenic => "ZAS",
2144 Characteristic::Boron => "ZB",
2145 Characteristic::Bismuth => "ZBI",
2146 Characteristic::Carbon => "ZC",
2147 Characteristic::Calcium => "ZCA",
2148 Characteristic::Columbium => "ZCB",
2149 Characteristic::Cerium => "ZCE",
2150 Characteristic::Chlorine => "ZCL",
2151 Characteristic::Cobalt => "ZCO",
2152 Characteristic::Chromium => "ZCR",
2153 Characteristic::Copper => "ZCU",
2154 Characteristic::Iron => "ZFE",
2155 Characteristic::IronPlusSilicon => "ZFS",
2156 Characteristic::Germanium => "ZGE",
2157 Characteristic::Hydrogen => "ZH",
2158 Characteristic::Potassium => "ZK",
2159 Characteristic::Magnesium => "ZMG",
2160 Characteristic::Manganese => "ZMN",
2161 Characteristic::Molybdenum => "ZMO",
2162 Characteristic::Nitrogen => "ZN",
2163 Characteristic::Sodium => "ZNA",
2164 Characteristic::Niobium => "ZNB",
2165 Characteristic::Nickel => "ZNI",
2166 Characteristic::Oxygen => "ZO",
2167 Characteristic::Phosphorus => "ZP",
2168 Characteristic::Lead => "ZPB",
2169 Characteristic::Sulphur => "ZS",
2170 Characteristic::Antimony => "ZSB",
2171 Characteristic::Selenium => "ZSE",
2172 Characteristic::Silicon => "ZSI",
2173 Characteristic::SiliciumOxyd => "ZSL",
2174 Characteristic::Tin => "ZSN",
2175 Characteristic::Tantalium => "ZTA",
2176 Characteristic::Tellurium => "ZTE",
2177 Characteristic::Titanium => "ZTI",
2178 Characteristic::Vanadium => "ZV",
2179 Characteristic::Tungsten => "ZW",
2180 Characteristic::WasteContent => "ZWA",
2181 Characteristic::Zinc => "ZZN",
2182 Characteristic::Zirconium => "ZZR",
2183 Characteristic::MutuallyDefined => "ZZZ",
2184 Characteristic::BestBeforeDate => "BEST_BEFORE_DATE",
2185 Characteristic::ColourAsText => "COLOR_TEXT",
2186 Characteristic::CommissionIndicator => "COMMISSION",
2187 Characteristic::DepositSystem => "DEPOSIT_SYSTEM",
2188 Characteristic::DepositType => "DEPOSIT_TYPE",
2189 Characteristic::EnergyEfficiencyClass => "ENERGY_CLASS",
2190 Characteristic::ExpirationDate => "EXPIRATION_DATE",
2191 Characteristic::FeeIndicator => "FEE",
2192 Characteristic::TypeArticle => "KIND_OF_ARTICLE",
2193 Characteristic::MaterialProduct => "MATERIAL",
2194 Characteristic::MeteringPointDesignationEGForElectricityOrGas => "METER_LOCATION",
2195 Characteristic::MeterNumberEGForElectricityOrGas => "METER_NUMBER",
2196 Characteristic::OrganicControlBodyNumber => "ORGANIC_CONTROL_BODY",
2197 Characteristic::PackagingMaterial => "PACKAGING_MATERIAL",
2198 Characteristic::TypePackagingCode => "PACKAGING_TYPE",
2199 Characteristic::NumberActionVariant => "PROMOTIONAL_VARIANT",
2200 Characteristic::SealNumber => "SEAL_NUMBER",
2201 Characteristic::SizeCode => "SIZE_CODE",
2202 Characteristic::SizeDesignation => "SIZE_TEXT",
2203 Characteristic::TypeTradingUnit => "TRADING_UNIT",
2204 Characteristic::WasteCodeEwc => "WASTE_CODE",
2205 Characteristic::WasteFraction => "WASTE_FRACTION",
2206 Characteristic::WeeeRegistrationNumber => "WEEE_NUMBER",
2207 }
2208 }
2209}
2210
2211impl crate::Description for Characteristic {
2212 fn description(self) -> &'static str {
2213 match self {
2214 Characteristic::ConsolidatedWeight => "Consolidated weight",
2215 Characteristic::NetWeight => "Net weight",
2216 Characteristic::GoodsItemGrossWeight => "Goods item gross weight",
2217 Characteristic::TotalNetWeight => "Total net weight",
2218 Characteristic::ConsignmentGrossWeight => "Consignment gross weight",
2219 Characteristic::NetNetWeight => "Net net weight",
2220 Characteristic::SternThrust => "Stern thrust",
2221 Characteristic::BowThrust => "Bow thrust",
2222 Characteristic::HydrateContentAnAlcoholicProductAtBottling => {
2223 "Hydrate content of an alcoholic product at bottling"
2224 }
2225 Characteristic::NumberUnitsPerPallet => "Number of units per pallet",
2226 Characteristic::FatContent => "Fat content",
2227 Characteristic::TransportMeansGrossWeight => "Transport means gross weight",
2228 Characteristic::NetTonnageVessel => "Net tonnage of the vessel",
2229 Characteristic::Humidity => "Humidity",
2230 Characteristic::Voltage => "Voltage",
2231 Characteristic::PowerConsumption => "Power consumption",
2232 Characteristic::HeatDissipation => "Heat dissipation",
2233 Characteristic::AirFlow => "Air flow",
2234 Characteristic::ShockImpact => "Shock impact",
2235 Characteristic::OperativeTemperature => "Operative temperature",
2236 Characteristic::NonOperativeTemperature => "Non operative temperature",
2237 Characteristic::GrossVolume => "Gross volume",
2238 Characteristic::NetVolume => "Net volume",
2239 Characteristic::WaterContent => "Water content",
2240 Characteristic::TensileStress => "Tensile stress",
2241 Characteristic::Fibrosity => "Fibrosity",
2242 Characteristic::GaugeLength => "Gauge length",
2243 Characteristic::Radius => "Radius",
2244 Characteristic::Straightness => "Straightness",
2245 Characteristic::Strain => "Strain",
2246 Characteristic::ItemWidthWhenUnrolled => "Item width when unrolled",
2247 Characteristic::ItemLengthWhenUnrolled => "Item length when unrolled",
2248 Characteristic::ItemAreaWhenUnrolled => "Item area when unrolled",
2249 Characteristic::OriginalWort => "Original wort",
2250 Characteristic::Volume => "Volume",
2251 Characteristic::Angle => "Angle",
2252 Characteristic::PegHoleHorizontalDistanceFromPackageLeftmostEdge => {
2253 "Peg hole horizontal distance from package leftmost edge"
2254 }
2255 Characteristic::PegHoleVerticalDistanceFromPackageTop => {
2256 "Peg hole vertical distance from package top"
2257 }
2258 Characteristic::NumberLayersPerPallet => "Number of layers per pallet",
2259 Characteristic::ProductStrenghChemical => "Product strengh, chemical",
2260 Characteristic::ProductStrengthBasisChemical => "Product strength basis, chemical",
2261 Characteristic::ItemWeight => "Item weight",
2262 Characteristic::PayloadWeightMaximum => "Payload weight, maximum",
2263 Characteristic::WeightConveyance => "Weight of conveyance",
2264 Characteristic::ConveyanceSummerDeadWeight => "Conveyance summer dead weight",
2265 Characteristic::ContainerizedCargoOnVesselsWeight => {
2266 "Containerized cargo on vessel's weight"
2267 }
2268 Characteristic::NonContainerizedCargoOnVesselsWeight => {
2269 "Non-containerized cargo on vessel's weight"
2270 }
2271 Characteristic::AscertainedWeight => "Ascertained weight",
2272 Characteristic::ChargeableWeight => "Chargeable weight",
2273 Characteristic::EstimatedGrossWeight => "Estimated gross weight",
2274 Characteristic::EstimatedVolume => "Estimated volume",
2275 Characteristic::VesselOverallLength => "Vessel overall length",
2276 Characteristic::LoadingMeters => "Loading meters",
2277 Characteristic::NumberAxles => "Number of axles",
2278 Characteristic::Payload => "Payload",
2279 Characteristic::StartPositionInLength => "Start position in the length",
2280 Characteristic::EndPositionInLength => "End position in the length",
2281 Characteristic::StartPositionInWidth => "Start position in the width",
2282 Characteristic::EndPositionInWidth => "End position in the width",
2283 Characteristic::StartPositionInThickness => "Start position in the thickness",
2284 Characteristic::EndPositionInThickness => "End position in the thickness",
2285 Characteristic::TransportContainerActualFillingWeight => {
2286 "Transport container actual filling weight"
2287 }
2288 Characteristic::TransportContainerMaximumCapacity => {
2289 "Transport container maximum capacity"
2290 }
2291 Characteristic::DeclaredNetWeight => "Declared net weight",
2292 Characteristic::LoadingHeight => "Loading height",
2293 Characteristic::StackingHeight => "Stacking height",
2294 Characteristic::CalculatedWeight => "Calculated weight",
2295 Characteristic::Ferrite => "Ferrite",
2296 Characteristic::Impurity => "Impurity",
2297 Characteristic::GrainSize => "Grain size",
2298 Characteristic::Lanthanides => "Lanthanides",
2299 Characteristic::Elasticity => "Elasticity",
2300 Characteristic::DrainedWeight => "Drained weight",
2301 Characteristic::Gallium => "Gallium",
2302 Characteristic::Strontium => "Strontium",
2303 Characteristic::Area => "Area",
2304 Characteristic::EquipmentStorageLimitation => "Equipment storage limitation",
2305 Characteristic::RadioactiveIndexTransport => "Radioactive index of transport",
2306 Characteristic::Radioactivity => "Radioactivity",
2307 Characteristic::AverageGrossWeight => "Average gross weight",
2308 Characteristic::ForwardDraft => "Forward draft",
2309 Characteristic::AfterDraft => "After draft",
2310 Characteristic::Acidity => "Acidity",
2311 Characteristic::TransportEquipmentGrossWeight => "Transport equipment gross weight",
2312 Characteristic::TotalTransportEquipmentGrossWeight => {
2313 "Total transport equipment gross weight"
2314 }
2315 Characteristic::AcidityJuice => "Acidity of juice",
2316 Characteristic::Penetrometry => "Penetrometry",
2317 Characteristic::Durofel => "Durofel",
2318 Characteristic::JuiceWeightPer100Grams => "Juice weight per 100 grams",
2319 Characteristic::FruitSkinColour => "Fruit skin colour",
2320 Characteristic::AngleBend => "Angle of bend",
2321 Characteristic::FixedIncrementalMeasurement => "Fixed incremental measurement",
2322 Characteristic::DurofelD10 => "Durofel D10",
2323 Characteristic::DurofelD25 => "Durofel D25",
2324 Characteristic::DurofelD50 => "Durofel D50",
2325 Characteristic::MaximumStackingWeight => "Maximum stacking weight",
2326 Characteristic::GrossMeasureCube => "Gross measure cube",
2327 Characteristic::PercentageFatContentInDryMatter => {
2328 "Percentage fat content in dry matter"
2329 }
2330 Characteristic::SaccharometricContent => "Saccharometric content",
2331 Characteristic::HydrateContentAnAlcoholicProductAfterBottling => {
2332 "Hydrate content of an alcoholic product after bottling"
2333 }
2334 Characteristic::AnhydrousContent => "Anhydrous content",
2335 Characteristic::CertifiedWeight => "Certified weight",
2336 Characteristic::Freeboard => "Freeboard",
2337 Characteristic::MaximumVesselDraught => "Maximum vessel draught",
2338 Characteristic::NetExplosiveWeight => "Net explosive weight",
2339 Characteristic::RadioactiveCriticalitySafetyIndex => {
2340 "Radioactive criticality safety index"
2341 }
2342 Characteristic::WasteCurrentlyOnBoard => "Waste currently on board",
2343 Characteristic::WasteToBeDeliveredAtWasteReceptionFacility => {
2344 "Waste to be delivered at waste reception facility"
2345 }
2346 Characteristic::WasteToBeGeneratedUntilNextPortCallEstimated => {
2347 "Waste to be generated until next port of call, estimated"
2348 }
2349 Characteristic::WasteRemainingOnBoardAtDeparture => {
2350 "Waste remaining on board at departure"
2351 }
2352 Characteristic::ColourDepth => "Colour depth",
2353 Characteristic::ColourDepthMaximum => "Colour depth, maximum",
2354 Characteristic::ImageResolution => "Image resolution",
2355 Characteristic::DeviceResolutionMaximum => "Device resolution, maximum",
2356 Characteristic::AcousticAbsorptionCoefficient => "Acoustic absorption coefficient",
2357 Characteristic::BilledWeight => "Billed weight",
2358 Characteristic::BreakingLoad => "Breaking load",
2359 Characteristic::Platinum => "Platinum",
2360 Characteristic::Silver => "Silver",
2361 Characteristic::List => "List",
2362 Characteristic::Trim => "Trim",
2363 Characteristic::FreeWater => "Free water",
2364 Characteristic::Bands => "Bands",
2365 Characteristic::ApiAmericanPetroleumInstituteGravity => {
2366 "API (American Petroleum Institute) gravity"
2367 }
2368 Characteristic::PetroleumGrossObservedVolume => "Petroleum gross observed volume",
2369 Characteristic::PetroleumGrossStandardVolume => "Petroleum gross standard volume",
2370 Characteristic::VolumeVariance => "Volume variance",
2371 Characteristic::PetroleumNetStandardVolume => "Petroleum net standard volume",
2372 Characteristic::MaterialOnBoardQuantityAfterDischarge => {
2373 "Material on-board quantity, after discharge"
2374 }
2375 Characteristic::PetroleumTotalCalculatedVolume => "Petroleum total calculated volume",
2376 Characteristic::PetroleumTotalObservedVolume => "Petroleum total observed volume",
2377 Characteristic::InnageGaugeDistance => "Innage gauge distance",
2378 Characteristic::PetroleumNetStandardWeight => "Petroleum net standard weight",
2379 Characteristic::SedimentAndWaterInPetroleum => "Sediment and water in petroleum",
2380 Characteristic::ObservedReferenceHeightTank => "Observed reference height, tank",
2381 Characteristic::ReferenceHeightTank => "Reference height, tank",
2382 Characteristic::UllageGaugeDistance => "Ullage gauge distance",
2383 Characteristic::TrimCorrection => "Trim correction",
2384 Characteristic::BowToBridgeDistance => "Bow to bridge distance",
2385 Characteristic::PegHoleNumber => "Peg hole number",
2386 Characteristic::NumberInnerPacks => "Number of inner packs",
2387 Characteristic::NumberNextLevelTradeItemsWithinInnerPack => {
2388 "Number of next level trade items within inner pack"
2389 }
2390 Characteristic::NumberTradeItemsPerPalletLayer => {
2391 "Number of trade items per pallet layer"
2392 }
2393 Characteristic::PackedItemsLayerHeight => "Packed items layer height",
2394 Characteristic::PackingMaterialWeightSkinTightCovering => {
2395 "Packing material weight, skin tight covering"
2396 }
2397 Characteristic::Brightness => "Brightness",
2398 Characteristic::Brakes => "Brakes",
2399 Characteristic::ComponentsLabelledForRecyclingPercentage => {
2400 "Components labelled for recycling percentage"
2401 }
2402 Characteristic::RenewablePlasticComponentsPercentageByNetWeight => {
2403 "Renewable plastic components percentage, by net weight"
2404 }
2405 Characteristic::ClampPressureRequired => "Clamp pressure, required",
2406 Characteristic::Break => "Break",
2407 Characteristic::AscertainedVolume => "Ascertained volume",
2408 Characteristic::UnitWeight => "Unit weight",
2409 Characteristic::TotalVolume => "Total volume",
2410 Characteristic::UnitVolume => "Unit volume",
2411 Characteristic::VerticalCenterGravity => "Vertical center of gravity",
2412 Characteristic::MaximumAllowableTransportStackingWeight => {
2413 "Maximum allowable transport stacking weight"
2414 }
2415 Characteristic::CarbonDioxide => "Carbon Dioxide",
2416 Characteristic::NumberBaseUnitsPerPallet => "Number of base units per pallet",
2417 Characteristic::ColonyFormingUnit => "Colony forming unit",
2418 Characteristic::DilutedLiquidVolume => "Diluted liquid volume",
2419 Characteristic::EnergyEfficiency => "Energy efficiency",
2420 Characteristic::NumberLayers => "Number of layers",
2421 Characteristic::MaximumDemand => "Maximum demand",
2422 Characteristic::NumberPalletPlaces => "Number of pallet places",
2423 Characteristic::PackageNetMeasurementCubed => "Package net measurement, cubed",
2424 Characteristic::PowerFactor => "Power factor",
2425 Characteristic::StackingFactorExcludingBottomItem => {
2426 "Stacking factor excluding bottom item"
2427 }
2428 Characteristic::BreakingStrength => "Breaking strength",
2429 Characteristic::BreakingStrengthWet => "Breaking strength wet",
2430 Characteristic::StepSize => "Step size",
2431 Characteristic::NumberUnitsPerPackage => "Number of units per package",
2432 Characteristic::NumberUnitsPerLayer => "Number of units per layer",
2433 Characteristic::WeightPerRunningMetre => "Weight per running metre",
2434 Characteristic::WeightPerSquareMetre => "Weight per square metre",
2435 Characteristic::AcidityMeat => "Acidity of meat",
2436 Characteristic::SlaughteringWeight => "Slaughtering weight",
2437 Characteristic::StackingFactorIncludingBottomItem => {
2438 "Stacking factor including bottom item"
2439 }
2440 Characteristic::NumberUnitsInWidthALayer => "Number of units in the width of a layer",
2441 Characteristic::NumberUnitsInDepthALayer => "Number of units in the depth of a layer",
2442 Characteristic::NestablePercentage => "Nestable percentage",
2443 Characteristic::GrossWeightIncludingCarriersEquipment => {
2444 "Gross weight including carrier's equipment"
2445 }
2446 Characteristic::SugarContent => "Sugar content",
2447 Characteristic::SelfAcceleratingPolymerizationTemperatureSapt => {
2448 "Self-accelerating polymerization temperature (SAPT)"
2449 }
2450 Characteristic::SelfAcceleratingDecompositionTemperatureSadt => {
2451 "Self-accelerating decomposition temperature (SADT)"
2452 }
2453 Characteristic::ControlTemperature => "Control temperature",
2454 Characteristic::BasisWeight => "Basis weight",
2455 Characteristic::Change => "Change",
2456 Characteristic::EmergencyTemperature => "Emergency temperature",
2457 Characteristic::Colour => "Colour",
2458 Characteristic::ContentsPackage => "Contents of package",
2459 Characteristic::CommercialWeight => "Commercial weight",
2460 Characteristic::CoreLength => "Core length",
2461 Characteristic::DestinationWeightAgreement => "Destination weight agreement",
2462 Characteristic::Diameter => "Diameter",
2463 Characteristic::DeltaValueL => "Delta value L",
2464 Characteristic::Density => "Density",
2465 Characteristic::Depth => "Depth",
2466 Characteristic::Denier => "Denier",
2467 Characteristic::DistanceBetweenPoints => "Distance between points",
2468 Characteristic::WidthBoxcarDoor => "Width, boxcar door",
2469 Characteristic::EstimatedNewWeight => "Estimated new weight",
2470 Characteristic::Elongation => "Elongation",
2471 Characteristic::DeficitWeight => "Deficit weight",
2472 Characteristic::FilamentCount => "Filament count",
2473 Characteristic::LongitudinalFlatness => "Longitudinal flatness",
2474 Characteristic::Flatness => "Flatness",
2475 Characteristic::TransverseFlatness => "Transverse flatness",
2476 Characteristic::Gauge => "Gauge",
2477 Characteristic::GrossWeightMaximum => "Gross weight, maximum",
2478 Characteristic::Hardness => "Hardness",
2479 Characteristic::HeightMaximum => "Height, maximum",
2480 Characteristic::HeightDimension => "Height dimension",
2481 Characteristic::ImpactEnergy => "Impact energy",
2482 Characteristic::InsideDiameter => "Inside diameter",
2483 Characteristic::LegalWeight => "Legal weight",
2484 Characteristic::LengthMaximum => "Length, maximum",
2485 Characteristic::Length => "Length",
2486 Characteristic::LostEnd => "Lost end",
2487 Characteristic::MinimumWeight => "Minimum weight",
2488 Characteristic::Moisture => "Moisture",
2489 Characteristic::MaximumWeight => "Maximum weight",
2490 Characteristic::ActualNetWeight => "Actual net weight",
2491 Characteristic::OutsideDiameter => "Outside diameter",
2492 Characteristic::PreStretch => "Pre stretch",
2493 Characteristic::PerTonne => "Per tonne",
2494 Characteristic::RelativeHumidity => "Relative humidity",
2495 Characteristic::Resistivity => "Resistivity",
2496 Characteristic::RockwellC => "Rockwell C",
2497 Characteristic::ReamWeight => "Ream weight",
2498 Characteristic::ReductionArea => "Reduction of area",
2499 Characteristic::RunProcess => "Run (process)",
2500 Characteristic::Ratio => "Ratio",
2501 Characteristic::ShippedQuantity => "Shipped quantity",
2502 Characteristic::TareWeight => "Tare weight",
2503 Characteristic::Temperature => "Temperature",
2504 Characteristic::Thickness => "Thickness",
2505 Characteristic::TimePeriod => "Time period",
2506 Characteristic::Time => "Time",
2507 Characteristic::TransportEquipmentVerifiedGrossMassWeight => {
2508 "Transport equipment verified gross mass (weight)"
2509 }
2510 Characteristic::HeightVanDoor => "Height, van door",
2511 Characteristic::WidthVanDoor => "Width, van door",
2512 Characteristic::WeightPerUnitArea => "Weight per unit of area",
2513 Characteristic::WidthDimension => "Width dimension",
2514 Characteristic::WidthMaximum => "Width, maximum",
2515 Characteristic::WeightPerUnitLength => "Weight per unit of length",
2516 Characteristic::SideHeightFlatBedWithRemovableSides => {
2517 "Side height, flat bed with removable sides"
2518 }
2519 Characteristic::Squareness => "Squareness",
2520 Characteristic::SpoolSize => "Spool size",
2521 Characteristic::YieldStress => "Yield stress",
2522 Characteristic::Aluminium => "Aluminium",
2523 Characteristic::Arsenic => "Arsenic",
2524 Characteristic::Boron => "Boron",
2525 Characteristic::Bismuth => "Bismuth",
2526 Characteristic::Carbon => "Carbon",
2527 Characteristic::Calcium => "Calcium",
2528 Characteristic::Columbium => "Columbium",
2529 Characteristic::Cerium => "Cerium",
2530 Characteristic::Chlorine => "Chlorine",
2531 Characteristic::Cobalt => "Cobalt",
2532 Characteristic::Chromium => "Chromium",
2533 Characteristic::Copper => "Copper",
2534 Characteristic::Iron => "Iron",
2535 Characteristic::IronPlusSilicon => "Iron plus silicon",
2536 Characteristic::Germanium => "Germanium",
2537 Characteristic::Hydrogen => "Hydrogen",
2538 Characteristic::Potassium => "Potassium",
2539 Characteristic::Magnesium => "Magnesium",
2540 Characteristic::Manganese => "Manganese",
2541 Characteristic::Molybdenum => "Molybdenum",
2542 Characteristic::Nitrogen => "Nitrogen",
2543 Characteristic::Sodium => "Sodium",
2544 Characteristic::Niobium => "Niobium",
2545 Characteristic::Nickel => "Nickel",
2546 Characteristic::Oxygen => "Oxygen",
2547 Characteristic::Phosphorus => "Phosphorus",
2548 Characteristic::Lead => "Lead",
2549 Characteristic::Sulphur => "Sulphur",
2550 Characteristic::Antimony => "Antimony",
2551 Characteristic::Selenium => "Selenium",
2552 Characteristic::Silicon => "Silicon",
2553 Characteristic::SiliciumOxyd => "Silicium oxyd",
2554 Characteristic::Tin => "Tin",
2555 Characteristic::Tantalium => "Tantalium",
2556 Characteristic::Tellurium => "Tellurium",
2557 Characteristic::Titanium => "Titanium",
2558 Characteristic::Vanadium => "Vanadium",
2559 Characteristic::Tungsten => "Tungsten",
2560 Characteristic::WasteContent => "Waste content",
2561 Characteristic::Zinc => "Zinc",
2562 Characteristic::Zirconium => "Zirconium",
2563 Characteristic::MutuallyDefined => "Mutually defined",
2564 Characteristic::BestBeforeDate => "Best before date",
2565 Characteristic::ColourAsText => "Colour as text",
2566 Characteristic::CommissionIndicator => "Commission indicator",
2567 Characteristic::DepositSystem => "Deposit system",
2568 Characteristic::DepositType => "Deposit type",
2569 Characteristic::EnergyEfficiencyClass => "Energy efficiency class",
2570 Characteristic::ExpirationDate => "Expiration date",
2571 Characteristic::FeeIndicator => "Fee indicator",
2572 Characteristic::TypeArticle => "Type of article",
2573 Characteristic::MaterialProduct => "Material of the product",
2574 Characteristic::MeteringPointDesignationEGForElectricityOrGas => {
2575 "Metering point designation, e.g. for electricity or gas"
2576 }
2577 Characteristic::MeterNumberEGForElectricityOrGas => {
2578 "Meter number, e.g. for electricity or gas"
2579 }
2580 Characteristic::OrganicControlBodyNumber => "Organic control body number",
2581 Characteristic::PackagingMaterial => "Packaging material",
2582 Characteristic::TypePackagingCode => "Type of packaging (code)",
2583 Characteristic::NumberActionVariant => "Number of the action variant",
2584 Characteristic::SealNumber => "Seal number",
2585 Characteristic::SizeCode => "Size code",
2586 Characteristic::SizeDesignation => "Size designation",
2587 Characteristic::TypeTradingUnit => "Type of trading unit",
2588 Characteristic::WasteCodeEwc => "Waste code (EWC)",
2589 Characteristic::WasteFraction => "Waste fraction",
2590 Characteristic::WeeeRegistrationNumber => "WEEE registration number",
2591 }
2592 }
2593}
2594
2595impl crate::FromCode for Characteristic {
2596 fn from_code(code: &str) -> Option<Self>
2597 where
2598 Self: Sized,
2599 {
2600 match code {
2601 "A" => Some(Characteristic::ConsolidatedWeight),
2602 "AAA" => Some(Characteristic::NetWeight),
2603 "AAB" => Some(Characteristic::GoodsItemGrossWeight),
2604 "AAC" => Some(Characteristic::TotalNetWeight),
2605 "AAD" => Some(Characteristic::ConsignmentGrossWeight),
2606 "AAF" => Some(Characteristic::NetNetWeight),
2607 "AAG" => Some(Characteristic::SternThrust),
2608 "AAH" => Some(Characteristic::BowThrust),
2609 "AAI" => Some(Characteristic::HydrateContentAnAlcoholicProductAtBottling),
2610 "AAJ" => Some(Characteristic::NumberUnitsPerPallet),
2611 "AAK" => Some(Characteristic::FatContent),
2612 "AAM" => Some(Characteristic::TransportMeansGrossWeight),
2613 "AAN" => Some(Characteristic::NetTonnageVessel),
2614 "AAO" => Some(Characteristic::Humidity),
2615 "AAP" => Some(Characteristic::Voltage),
2616 "AAQ" => Some(Characteristic::PowerConsumption),
2617 "AAR" => Some(Characteristic::HeatDissipation),
2618 "AAS" => Some(Characteristic::AirFlow),
2619 "AAT" => Some(Characteristic::ShockImpact),
2620 "AAU" => Some(Characteristic::OperativeTemperature),
2621 "AAV" => Some(Characteristic::NonOperativeTemperature),
2622 "AAW" => Some(Characteristic::GrossVolume),
2623 "AAX" => Some(Characteristic::NetVolume),
2624 "AAY" => Some(Characteristic::WaterContent),
2625 "AAZ" => Some(Characteristic::TensileStress),
2626 "ABA" => Some(Characteristic::Fibrosity),
2627 "ABB" => Some(Characteristic::GaugeLength),
2628 "ABC" => Some(Characteristic::Radius),
2629 "ABD" => Some(Characteristic::Straightness),
2630 "ABE" => Some(Characteristic::Strain),
2631 "ABF" => Some(Characteristic::ItemWidthWhenUnrolled),
2632 "ABG" => Some(Characteristic::ItemLengthWhenUnrolled),
2633 "ABH" => Some(Characteristic::ItemAreaWhenUnrolled),
2634 "ABI" => Some(Characteristic::OriginalWort),
2635 "ABJ" => Some(Characteristic::Volume),
2636 "ABK" => Some(Characteristic::Angle),
2637 "ABL" => Some(Characteristic::PegHoleHorizontalDistanceFromPackageLeftmostEdge),
2638 "ABM" => Some(Characteristic::PegHoleVerticalDistanceFromPackageTop),
2639 "ABN" => Some(Characteristic::NumberLayersPerPallet),
2640 "ABO" => Some(Characteristic::ProductStrenghChemical),
2641 "ABP" => Some(Characteristic::ProductStrengthBasisChemical),
2642 "ABS" => Some(Characteristic::ItemWeight),
2643 "ABT" => Some(Characteristic::PayloadWeightMaximum),
2644 "ABX" => Some(Characteristic::WeightConveyance),
2645 "ABY" => Some(Characteristic::ConveyanceSummerDeadWeight),
2646 "ABZ" => Some(Characteristic::ContainerizedCargoOnVesselsWeight),
2647 "ACA" => Some(Characteristic::NonContainerizedCargoOnVesselsWeight),
2648 "ACE" => Some(Characteristic::AscertainedWeight),
2649 "ACG" => Some(Characteristic::ChargeableWeight),
2650 "ACN" => Some(Characteristic::EstimatedGrossWeight),
2651 "ACP" => Some(Characteristic::EstimatedVolume),
2652 "ACS" => Some(Characteristic::VesselOverallLength),
2653 "ACV" => Some(Characteristic::LoadingMeters),
2654 "ACW" => Some(Characteristic::NumberAxles),
2655 "ACX" => Some(Characteristic::Payload),
2656 "ADR" => Some(Characteristic::StartPositionInLength),
2657 "ADS" => Some(Characteristic::EndPositionInLength),
2658 "ADT" => Some(Characteristic::StartPositionInWidth),
2659 "ADU" => Some(Characteristic::EndPositionInWidth),
2660 "ADV" => Some(Characteristic::StartPositionInThickness),
2661 "ADW" => Some(Characteristic::EndPositionInThickness),
2662 "ADX" => Some(Characteristic::TransportContainerActualFillingWeight),
2663 "ADY" => Some(Characteristic::TransportContainerMaximumCapacity),
2664 "ADZ" => Some(Characteristic::DeclaredNetWeight),
2665 "AEA" => Some(Characteristic::LoadingHeight),
2666 "AEB" => Some(Characteristic::StackingHeight),
2667 "AEC" => Some(Characteristic::CalculatedWeight),
2668 "AED" => Some(Characteristic::Ferrite),
2669 "AEE" => Some(Characteristic::Impurity),
2670 "AEF" => Some(Characteristic::GrainSize),
2671 "AEG" => Some(Characteristic::Lanthanides),
2672 "AEH" => Some(Characteristic::Elasticity),
2673 "AEI" => Some(Characteristic::DrainedWeight),
2674 "AEJ" => Some(Characteristic::Gallium),
2675 "AEK" => Some(Characteristic::Strontium),
2676 "AEL" => Some(Characteristic::Area),
2677 "AEM" => Some(Characteristic::EquipmentStorageLimitation),
2678 "AEN" => Some(Characteristic::RadioactiveIndexTransport),
2679 "AEO" => Some(Characteristic::Radioactivity),
2680 "AEP" => Some(Characteristic::AverageGrossWeight),
2681 "AEQ" => Some(Characteristic::ForwardDraft),
2682 "AER" => Some(Characteristic::AfterDraft),
2683 "AES" => Some(Characteristic::Acidity),
2684 "AET" => Some(Characteristic::TransportEquipmentGrossWeight),
2685 "AEU" => Some(Characteristic::TotalTransportEquipmentGrossWeight),
2686 "AEV" => Some(Characteristic::AcidityJuice),
2687 "AEW" => Some(Characteristic::Penetrometry),
2688 "AEX" => Some(Characteristic::Durofel),
2689 "AEY" => Some(Characteristic::JuiceWeightPer100Grams),
2690 "AEZ" => Some(Characteristic::FruitSkinColour),
2691 "AF" => Some(Characteristic::AngleBend),
2692 "AFA" => Some(Characteristic::FixedIncrementalMeasurement),
2693 "AFB" => Some(Characteristic::DurofelD10),
2694 "AFC" => Some(Characteristic::DurofelD25),
2695 "AFD" => Some(Characteristic::DurofelD50),
2696 "AFE" => Some(Characteristic::MaximumStackingWeight),
2697 "AFF" => Some(Characteristic::GrossMeasureCube),
2698 "AFG" => Some(Characteristic::PercentageFatContentInDryMatter),
2699 "AFH" => Some(Characteristic::SaccharometricContent),
2700 "AFI" => Some(Characteristic::HydrateContentAnAlcoholicProductAfterBottling),
2701 "AFJ" => Some(Characteristic::AnhydrousContent),
2702 "AFK" => Some(Characteristic::CertifiedWeight),
2703 "AFL" => Some(Characteristic::Freeboard),
2704 "AFM" => Some(Characteristic::MaximumVesselDraught),
2705 "AFN" => Some(Characteristic::NetExplosiveWeight),
2706 "AFO" => Some(Characteristic::RadioactiveCriticalitySafetyIndex),
2707 "AFP" => Some(Characteristic::WasteCurrentlyOnBoard),
2708 "AFQ" => Some(Characteristic::WasteToBeDeliveredAtWasteReceptionFacility),
2709 "AFR" => Some(Characteristic::WasteToBeGeneratedUntilNextPortCallEstimated),
2710 "AFS" => Some(Characteristic::WasteRemainingOnBoardAtDeparture),
2711 "AFT" => Some(Characteristic::ColourDepth),
2712 "AFU" => Some(Characteristic::ColourDepthMaximum),
2713 "AFV" => Some(Characteristic::ImageResolution),
2714 "AFW" => Some(Characteristic::DeviceResolutionMaximum),
2715 "AFX" => Some(Characteristic::AcousticAbsorptionCoefficient),
2716 "B" => Some(Characteristic::BilledWeight),
2717 "BL" => Some(Characteristic::BreakingLoad),
2718 "BMY" => Some(Characteristic::Platinum),
2719 "BMZ" => Some(Characteristic::Silver),
2720 "BNA" => Some(Characteristic::List),
2721 "BNB" => Some(Characteristic::Trim),
2722 "BNC" => Some(Characteristic::FreeWater),
2723 "BND" => Some(Characteristic::Bands),
2724 "BNE" => Some(Characteristic::ApiAmericanPetroleumInstituteGravity),
2725 "BNF" => Some(Characteristic::PetroleumGrossObservedVolume),
2726 "BNG" => Some(Characteristic::PetroleumGrossStandardVolume),
2727 "BNH" => Some(Characteristic::VolumeVariance),
2728 "BNI" => Some(Characteristic::PetroleumNetStandardVolume),
2729 "BNJ" => Some(Characteristic::MaterialOnBoardQuantityAfterDischarge),
2730 "BNK" => Some(Characteristic::PetroleumTotalCalculatedVolume),
2731 "BNL" => Some(Characteristic::PetroleumTotalObservedVolume),
2732 "BNM" => Some(Characteristic::InnageGaugeDistance),
2733 "BNN" => Some(Characteristic::PetroleumNetStandardWeight),
2734 "BNO" => Some(Characteristic::SedimentAndWaterInPetroleum),
2735 "BNP" => Some(Characteristic::ObservedReferenceHeightTank),
2736 "BNQ" => Some(Characteristic::ReferenceHeightTank),
2737 "BNR" => Some(Characteristic::UllageGaugeDistance),
2738 "BNS" => Some(Characteristic::TrimCorrection),
2739 "BNT" => Some(Characteristic::BowToBridgeDistance),
2740 "BNU" => Some(Characteristic::PegHoleNumber),
2741 "BNV" => Some(Characteristic::NumberInnerPacks),
2742 "BNW" => Some(Characteristic::NumberNextLevelTradeItemsWithinInnerPack),
2743 "BNX" => Some(Characteristic::NumberTradeItemsPerPalletLayer),
2744 "BNY" => Some(Characteristic::PackedItemsLayerHeight),
2745 "BNZ" => Some(Characteristic::PackingMaterialWeightSkinTightCovering),
2746 "BR" => Some(Characteristic::Brightness),
2747 "BRA" => Some(Characteristic::Brakes),
2748 "BRB" => Some(Characteristic::ComponentsLabelledForRecyclingPercentage),
2749 "BRC" => Some(Characteristic::RenewablePlasticComponentsPercentageByNetWeight),
2750 "BRD" => Some(Characteristic::ClampPressureRequired),
2751 "BRE" => Some(Characteristic::Break),
2752 "BRF" => Some(Characteristic::AscertainedVolume),
2753 "BRG" => Some(Characteristic::UnitWeight),
2754 "BRH" => Some(Characteristic::TotalVolume),
2755 "BRI" => Some(Characteristic::UnitVolume),
2756 "BRJ" => Some(Characteristic::VerticalCenterGravity),
2757 "BRK" => Some(Characteristic::MaximumAllowableTransportStackingWeight),
2758 "BRL" => Some(Characteristic::CarbonDioxide),
2759 "BRM" => Some(Characteristic::NumberBaseUnitsPerPallet),
2760 "BRN" => Some(Characteristic::ColonyFormingUnit),
2761 "BRO" => Some(Characteristic::DilutedLiquidVolume),
2762 "BRP" => Some(Characteristic::EnergyEfficiency),
2763 "BRQ" => Some(Characteristic::NumberLayers),
2764 "BRR" => Some(Characteristic::MaximumDemand),
2765 "BRS" => Some(Characteristic::NumberPalletPlaces),
2766 "BRT" => Some(Characteristic::PackageNetMeasurementCubed),
2767 "BRU" => Some(Characteristic::PowerFactor),
2768 "BRV" => Some(Characteristic::StackingFactorExcludingBottomItem),
2769 "BS" => Some(Characteristic::BreakingStrength),
2770 "BSW" => Some(Characteristic::BreakingStrengthWet),
2771 "BSX" => Some(Characteristic::StepSize),
2772 "BSY" => Some(Characteristic::NumberUnitsPerPackage),
2773 "BSZ" => Some(Characteristic::NumberUnitsPerLayer),
2774 "BTA" => Some(Characteristic::WeightPerRunningMetre),
2775 "BTB" => Some(Characteristic::WeightPerSquareMetre),
2776 "BTC" => Some(Characteristic::AcidityMeat),
2777 "BTD" => Some(Characteristic::SlaughteringWeight),
2778 "BTE" => Some(Characteristic::StackingFactorIncludingBottomItem),
2779 "BTF" => Some(Characteristic::NumberUnitsInWidthALayer),
2780 "BTG" => Some(Characteristic::NumberUnitsInDepthALayer),
2781 "BTH" => Some(Characteristic::NestablePercentage),
2782 "BTI" => Some(Characteristic::GrossWeightIncludingCarriersEquipment),
2783 "BTJ" => Some(Characteristic::SugarContent),
2784 "BTK" => Some(Characteristic::SelfAcceleratingPolymerizationTemperatureSapt),
2785 "BTL" => Some(Characteristic::SelfAcceleratingDecompositionTemperatureSadt),
2786 "BTM" => Some(Characteristic::ControlTemperature),
2787 "BW" => Some(Characteristic::BasisWeight),
2788 "CHN" => Some(Characteristic::Change),
2789 "CHO" => Some(Characteristic::EmergencyTemperature),
2790 "CM" => Some(Characteristic::Colour),
2791 "CT" => Some(Characteristic::ContentsPackage),
2792 "CV" => Some(Characteristic::CommercialWeight),
2793 "CZ" => Some(Characteristic::CoreLength),
2794 "D" => Some(Characteristic::DestinationWeightAgreement),
2795 "DI" => Some(Characteristic::Diameter),
2796 "DL" => Some(Characteristic::DeltaValueL),
2797 "DN" => Some(Characteristic::Density),
2798 "DP" => Some(Characteristic::Depth),
2799 "DR" => Some(Characteristic::Denier),
2800 "DS" => Some(Characteristic::DistanceBetweenPoints),
2801 "DW" => Some(Characteristic::WidthBoxcarDoor),
2802 "E" => Some(Characteristic::EstimatedNewWeight),
2803 "EA" => Some(Characteristic::Elongation),
2804 "F" => Some(Characteristic::DeficitWeight),
2805 "FI" => Some(Characteristic::FilamentCount),
2806 "FL" => Some(Characteristic::LongitudinalFlatness),
2807 "FN" => Some(Characteristic::Flatness),
2808 "FV" => Some(Characteristic::TransverseFlatness),
2809 "GG" => Some(Characteristic::Gauge),
2810 "GW" => Some(Characteristic::GrossWeightMaximum),
2811 "HF" => Some(Characteristic::Hardness),
2812 "HM" => Some(Characteristic::HeightMaximum),
2813 "HT" => Some(Characteristic::HeightDimension),
2814 "IB" => Some(Characteristic::ImpactEnergy),
2815 "ID" => Some(Characteristic::InsideDiameter),
2816 "L" => Some(Characteristic::LegalWeight),
2817 "LM" => Some(Characteristic::LengthMaximum),
2818 "LN" => Some(Characteristic::Length),
2819 "LND" => Some(Characteristic::LostEnd),
2820 "M" => Some(Characteristic::MinimumWeight),
2821 "MO" => Some(Characteristic::Moisture),
2822 "MW" => Some(Characteristic::MaximumWeight),
2823 "N" => Some(Characteristic::ActualNetWeight),
2824 "OD" => Some(Characteristic::OutsideDiameter),
2825 "PRS" => Some(Characteristic::PreStretch),
2826 "PTN" => Some(Characteristic::PerTonne),
2827 "RA" => Some(Characteristic::RelativeHumidity),
2828 "RF" => Some(Characteristic::Resistivity),
2829 "RJ" => Some(Characteristic::RockwellC),
2830 "RMW" => Some(Characteristic::ReamWeight),
2831 "RP" => Some(Characteristic::ReductionArea),
2832 "RUN" => Some(Characteristic::RunProcess),
2833 "RY" => Some(Characteristic::Ratio),
2834 "SQ" => Some(Characteristic::ShippedQuantity),
2835 "T" => Some(Characteristic::TareWeight),
2836 "TC" => Some(Characteristic::Temperature),
2837 "TH" => Some(Characteristic::Thickness),
2838 "TN" => Some(Characteristic::TimePeriod),
2839 "TT" => Some(Characteristic::Time),
2840 "VGM" => Some(Characteristic::TransportEquipmentVerifiedGrossMassWeight),
2841 "VH" => Some(Characteristic::HeightVanDoor),
2842 "VW" => Some(Characteristic::WidthVanDoor),
2843 "WA" => Some(Characteristic::WeightPerUnitArea),
2844 "WD" => Some(Characteristic::WidthDimension),
2845 "WM" => Some(Characteristic::WidthMaximum),
2846 "WU" => Some(Characteristic::WeightPerUnitLength),
2847 "XH" => Some(Characteristic::SideHeightFlatBedWithRemovableSides),
2848 "XQ" => Some(Characteristic::Squareness),
2849 "XZ" => Some(Characteristic::SpoolSize),
2850 "YS" => Some(Characteristic::YieldStress),
2851 "ZAL" => Some(Characteristic::Aluminium),
2852 "ZAS" => Some(Characteristic::Arsenic),
2853 "ZB" => Some(Characteristic::Boron),
2854 "ZBI" => Some(Characteristic::Bismuth),
2855 "ZC" => Some(Characteristic::Carbon),
2856 "ZCA" => Some(Characteristic::Calcium),
2857 "ZCB" => Some(Characteristic::Columbium),
2858 "ZCE" => Some(Characteristic::Cerium),
2859 "ZCL" => Some(Characteristic::Chlorine),
2860 "ZCO" => Some(Characteristic::Cobalt),
2861 "ZCR" => Some(Characteristic::Chromium),
2862 "ZCU" => Some(Characteristic::Copper),
2863 "ZFE" => Some(Characteristic::Iron),
2864 "ZFS" => Some(Characteristic::IronPlusSilicon),
2865 "ZGE" => Some(Characteristic::Germanium),
2866 "ZH" => Some(Characteristic::Hydrogen),
2867 "ZK" => Some(Characteristic::Potassium),
2868 "ZMG" => Some(Characteristic::Magnesium),
2869 "ZMN" => Some(Characteristic::Manganese),
2870 "ZMO" => Some(Characteristic::Molybdenum),
2871 "ZN" => Some(Characteristic::Nitrogen),
2872 "ZNA" => Some(Characteristic::Sodium),
2873 "ZNB" => Some(Characteristic::Niobium),
2874 "ZNI" => Some(Characteristic::Nickel),
2875 "ZO" => Some(Characteristic::Oxygen),
2876 "ZP" => Some(Characteristic::Phosphorus),
2877 "ZPB" => Some(Characteristic::Lead),
2878 "ZS" => Some(Characteristic::Sulphur),
2879 "ZSB" => Some(Characteristic::Antimony),
2880 "ZSE" => Some(Characteristic::Selenium),
2881 "ZSI" => Some(Characteristic::Silicon),
2882 "ZSL" => Some(Characteristic::SiliciumOxyd),
2883 "ZSN" => Some(Characteristic::Tin),
2884 "ZTA" => Some(Characteristic::Tantalium),
2885 "ZTE" => Some(Characteristic::Tellurium),
2886 "ZTI" => Some(Characteristic::Titanium),
2887 "ZV" => Some(Characteristic::Vanadium),
2888 "ZW" => Some(Characteristic::Tungsten),
2889 "ZWA" => Some(Characteristic::WasteContent),
2890 "ZZN" => Some(Characteristic::Zinc),
2891 "ZZR" => Some(Characteristic::Zirconium),
2892 "ZZZ" => Some(Characteristic::MutuallyDefined),
2893 "BEST_BEFORE_DATE" => Some(Characteristic::BestBeforeDate),
2894 "COLOR_TEXT" => Some(Characteristic::ColourAsText),
2895 "COMMISSION" => Some(Characteristic::CommissionIndicator),
2896 "DEPOSIT_SYSTEM" => Some(Characteristic::DepositSystem),
2897 "DEPOSIT_TYPE" => Some(Characteristic::DepositType),
2898 "ENERGY_CLASS" => Some(Characteristic::EnergyEfficiencyClass),
2899 "EXPIRATION_DATE" => Some(Characteristic::ExpirationDate),
2900 "FEE" => Some(Characteristic::FeeIndicator),
2901 "KIND_OF_ARTICLE" => Some(Characteristic::TypeArticle),
2902 "MATERIAL" => Some(Characteristic::MaterialProduct),
2903 "METER_LOCATION" => Some(Characteristic::MeteringPointDesignationEGForElectricityOrGas),
2904 "METER_NUMBER" => Some(Characteristic::MeterNumberEGForElectricityOrGas),
2905 "ORGANIC_CONTROL_BODY" => Some(Characteristic::OrganicControlBodyNumber),
2906 "PACKAGING_MATERIAL" => Some(Characteristic::PackagingMaterial),
2907 "PACKAGING_TYPE" => Some(Characteristic::TypePackagingCode),
2908 "PROMOTIONAL_VARIANT" => Some(Characteristic::NumberActionVariant),
2909 "SEAL_NUMBER" => Some(Characteristic::SealNumber),
2910 "SIZE_CODE" => Some(Characteristic::SizeCode),
2911 "SIZE_TEXT" => Some(Characteristic::SizeDesignation),
2912 "TRADING_UNIT" => Some(Characteristic::TypeTradingUnit),
2913 "WASTE_CODE" => Some(Characteristic::WasteCodeEwc),
2914 "WASTE_FRACTION" => Some(Characteristic::WasteFraction),
2915 "WEEE_NUMBER" => Some(Characteristic::WeeeRegistrationNumber),
2916 _ => None,
2917 }
2918 }
2919}