1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//! Model for MeasurementUnitWeight enum

use serde::{Deserialize, Serialize};

/// Unit of weight used to measure a quantity.
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum MeasurementUnitWeight {
    /// The weight is measured in ounces.
    ImperialWeightOunce,
    /// The weight is measured in pounds.
    ImperialPound,
    /// The weight is measured in stones.
    ImperialStone,
    /// The weight is measured in milligrams.
    MetricMilligram,
    /// The weight is measured in grams.
    MetricGram,
    /// The weight is measured in kilograms.
    MetricKilogram,
}