pub struct Element {
pub name: String,
pub symbol: String,
pub atomic_number: u8,
pub atomic_mass: f64,
pub density: f64,
pub group: Option<u8>,
pub melting_point: Option<Value>,
pub boiling_point: Option<Value>,
}Expand description
Represents a chemical element with its properties from periodic table.
Fields§
§name: StringFull name of the chemical element
symbol: StringSymbol of the element
atomic_number: u8Atomic number of the element from periodic table
atomic_mass: f64Atomic mass of the element from periodic table
density: f64Density of the element.
group: Option<u8>Optional group number of the element in the periodic table.
melting_point: Option<Value>Optional melting point of the element.
boiling_point: Option<Value>Optional boiling point of the element.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Element
impl<'de> Deserialize<'de> for Element
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 Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
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