pub struct PubChemCompound {
pub cid: u64,
pub iupac_name: Option<String>,
pub canonical_smiles: Option<String>,
pub inchi: Option<String>,
pub inchi_key: Option<String>,
pub molecular_formula: Option<String>,
pub molecular_weight: Option<f64>,
}Expand description
Compound data returned from a successful PubChem lookup.
Fields§
§cid: u64PubChem Compound ID.
iupac_name: Option<String>Preferred IUPAC name as assigned by PubChem.
canonical_smiles: Option<String>Canonical SMILES string.
inchi: Option<String>Standard InChI string.
inchi_key: Option<String>27-character InChIKey.
molecular_formula: Option<String>Hill-notation molecular formula.
molecular_weight: Option<f64>Molecular weight in g/mol.
Implementations§
Source§impl PubChemCompound
impl PubChemCompound
Sourcepub fn apply_to(&self, id: &mut SubstanceIdentifier)
pub fn apply_to(&self, id: &mut SubstanceIdentifier)
Copy fields from this compound into id, filling only the missing fields.
The CID is always set. Other fields are only written if the identifier
field is currently None.
Trait Implementations§
Source§impl Clone for PubChemCompound
impl Clone for PubChemCompound
Source§fn clone(&self) -> PubChemCompound
fn clone(&self) -> PubChemCompound
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 moreAuto Trait Implementations§
impl Freeze for PubChemCompound
impl RefUnwindSafe for PubChemCompound
impl Send for PubChemCompound
impl Sync for PubChemCompound
impl Unpin for PubChemCompound
impl UnsafeUnpin for PubChemCompound
impl UnwindSafe for PubChemCompound
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