Key attribute! Serialize/Deserialize as the inner u32
| 165 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)] |
| 166 | #[serde(transparent)] // Key attribute! Serialize/Deserialize as the inner u32 |
| 167 | pub struct Ppm(pub u32); // u32 is sufficient as 1,000,000 fits easily (spec definition) |
| 168 | |
| 169 | impl Ppm { |
| 170 | /// Constructs a new `Ppm` from a u32. |
no outgoing calls