pub enum PurityType {
ReagentGrade,
TechnicalGrade,
PharmaceuticalGrade {
standard: Option<String>,
},
FoodGrade,
ElectronicsGrade,
Specified(f64),
}Variants§
ReagentGrade
TechnicalGrade
PharmaceuticalGrade
Pharmaceutical grade (PhEur / USP / JP, etc.).
FoodGrade
ElectronicsGrade
Specified(f64)
Numeric purity value in % (0.0–100.0).
Trait Implementations§
Source§impl Clone for PurityType
impl Clone for PurityType
Source§fn clone(&self) -> PurityType
fn clone(&self) -> PurityType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PurityType
impl Debug for PurityType
Source§impl<'de> Deserialize<'de> for PurityType
impl<'de> Deserialize<'de> for PurityType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PurityType
impl PartialEq for PurityType
Source§fn eq(&self, other: &PurityType) -> bool
fn eq(&self, other: &PurityType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PurityType
impl Serialize for PurityType
impl StructuralPartialEq for PurityType
Auto Trait Implementations§
impl Freeze for PurityType
impl RefUnwindSafe for PurityType
impl Send for PurityType
impl Sync for PurityType
impl Unpin for PurityType
impl UnsafeUnpin for PurityType
impl UnwindSafe for PurityType
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