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