pub struct MixtureComponent {
pub substance: SubstanceIdentifier,
pub weight_fraction_pct: Option<f64>,
pub volume_fraction_pct: Option<f64>,
pub is_solvent: bool,
}Expand description
A single component of a mixture product.
Set either weight_fraction_pct or volume_fraction_pct, not both.
Fields§
§substance: SubstanceIdentifierIdentifier for this component substance.
weight_fraction_pct: Option<f64>Weight fraction in w/w%. The sum of all components need not equal 100 (remaining fraction may be unknown).
volume_fraction_pct: Option<f64>Volume fraction in v/v%. Mutually exclusive with weight_fraction_pct.
is_solvent: boolMarks this component as the solvent (for solution products).
Trait Implementations§
Source§impl Clone for MixtureComponent
impl Clone for MixtureComponent
Source§fn clone(&self) -> MixtureComponent
fn clone(&self) -> MixtureComponent
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 MixtureComponent
impl Debug for MixtureComponent
Source§impl<'de> Deserialize<'de> for MixtureComponent
impl<'de> Deserialize<'de> for MixtureComponent
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
Auto Trait Implementations§
impl Freeze for MixtureComponent
impl RefUnwindSafe for MixtureComponent
impl Send for MixtureComponent
impl Sync for MixtureComponent
impl Unpin for MixtureComponent
impl UnsafeUnpin for MixtureComponent
impl UnwindSafe for MixtureComponent
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