pub struct UnitInfo {
pub code: &'static str,
pub name: &'static str,
pub symbol: Option<&'static str>,
pub quantity: Option<&'static str>,
pub sector: Option<&'static str>,
pub conversion_factor: Option<&'static str>,
pub level_category: Option<&'static str>,
pub description: Option<&'static str>,
}Expand description
All metadata for a UnitOfMeasure variant.
Fields§
§code: &'static str2- or 3-character alphanumeric common code (e.g. "MTR", "KGM").
name: &'static strEnglish unit name.
symbol: Option<&'static str>Unit symbol (e.g. m, kg), if defined.
quantity: Option<&'static str>Physical quantity this unit measures (Annex I only).
sector: Option<&'static str>Sector / scientific discipline (Annex I only).
conversion_factor: Option<&'static str>Informative conversion factor expression.
level_category: Option<&'static str>Normative level/category code from the recommendation.
description: Option<&'static str>Human-readable description.
Trait Implementations§
impl Copy for UnitInfo
impl Eq for UnitInfo
impl StructuralPartialEq for UnitInfo
Auto Trait Implementations§
impl Freeze for UnitInfo
impl RefUnwindSafe for UnitInfo
impl Send for UnitInfo
impl Sync for UnitInfo
impl Unpin for UnitInfo
impl UnsafeUnpin for UnitInfo
impl UnwindSafe for UnitInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more