Geomaterial

Struct Geomaterial 

Source
pub struct Geomaterial {
Show 119 fields pub id: i32, pub longid: Option<String>, pub guid: Option<String>, pub name: Option<String>, pub updttime: Option<String>, pub mindat_formula: Option<String>, pub mindat_formula_note: Option<String>, pub ima_formula: Option<String>, pub ima_status: Option<Vec<String>>, pub ima_notes: Option<Vec<String>>, pub varietyof: Option<i32>, pub synid: Option<i32>, pub polytypeof: Option<i32>, pub groupid: Option<i32>, pub entrytype: Option<i32>, pub entrytype_text: Option<String>, pub description_short: Option<String>, pub impurities: Option<String>, pub elements: Option<Vec<String>>, pub sigelements: Option<Vec<String>>, pub key_elements: Option<Vec<String>>, pub tlform: Option<String>, pub cim: Option<String>, pub occurrence: Option<String>, pub otheroccurrence: Option<String>, pub industrial: Option<String>, pub discovery_year: Option<String>, pub approval_year: Option<u32>, pub publication_year: Option<u32>, pub ima_history: Option<String>, pub diapheny: Option<String>, pub cleavage: Option<String>, pub cleavagetype: Option<String>, pub parting: Option<String>, pub tenacity: Option<String>, pub colour: Option<String>, pub csmetamict: Option<i32>, pub opticalextinction: Option<String>, pub hmin: Option<f64>, pub hmax: Option<f64>, pub hardtype: Option<i32>, pub vhnmin: Option<String>, pub vhnmax: Option<String>, pub vhnerror: Option<i32>, pub vhng: Option<i32>, pub vhns: Option<i32>, pub luminescence: Option<String>, pub lustre: Option<String>, pub lustretype: Option<String>, pub aboutname: Option<String>, pub other: Option<String>, pub streak: Option<String>, pub csystem: Option<String>, pub cclass: Option<i32>, pub spacegroup: Option<i32>, pub spacegroupset: Option<String>, pub a: Option<String>, pub b: Option<String>, pub c: Option<String>, pub alpha: Option<String>, pub beta: Option<String>, pub gamma: Option<String>, pub va3: Option<f64>, pub z: Option<i32>, pub dmeas: Option<String>, pub dmeas2: Option<String>, pub dcalc: Option<String>, pub fracturetype: Option<String>, pub morphology: Option<String>, pub twinning: Option<String>, pub epitaxidescription: Option<String>, pub opticaltype: Option<String>, pub opticalsign: Option<String>, pub opticalalpha: Option<String>, pub opticalbeta: Option<String>, pub opticalgamma: Option<String>, pub opticalomega: Option<String>, pub opticalepsilon: Option<String>, pub opticaln: Option<String>, pub optical2vcalc: Option<String>, pub optical2vmeasured: Option<String>, pub opticaldispersion: Option<String>, pub opticalpleochroism: Option<String>, pub opticalpleochorismdesc: Option<String>, pub opticalbirefringence: Option<String>, pub opticalcomments: Option<String>, pub opticalcolour: Option<String>, pub opticalinternal: Option<String>, pub opticaltropic: Option<String>, pub opticalanisotropism: Option<String>, pub opticalbireflectance: Option<String>, pub opticalr: Option<String>, pub rimin: Option<f64>, pub rimax: Option<f64>, pub uv: Option<String>, pub ir: Option<String>, pub magnetism: Option<String>, pub type_specimen_store: Option<String>, pub shortcode_ima: Option<String>, pub strunz10ed1: Option<String>, pub strunz10ed2: Option<String>, pub strunz10ed3: Option<String>, pub strunz10ed4: Option<String>, pub dana8ed1: Option<String>, pub dana8ed2: Option<String>, pub dana8ed3: Option<String>, pub dana8ed4: Option<String>, pub thermalbehaviour: Option<String>, pub electrical: Option<String>, pub rock_parent: Option<i32>, pub rock_parent2: Option<i32>, pub rock_root: Option<i32>, pub rock_bgs_code: Option<String>, pub meteoritical_code: Option<String>, pub weighting: Option<i32>, pub relations: Option<Vec<Relation>>, pub minstats: Option<MinStats>, pub locality: Option<Vec<i32>>, pub type_localities: Option<Vec<i32>>,
}
Expand description

A geomaterial (mineral, variety, synonym, rock, etc.) from the Mindat database.

Fields§

§id: i32

Mindat ID.

§longid: Option<String>

Long ID string.

§guid: Option<String>

GUID.

§name: Option<String>

Name of the geomaterial.

§updttime: Option<String>

Last update time.

§mindat_formula: Option<String>

Mindat chemical formula.

§mindat_formula_note: Option<String>

Notes on the Mindat formula.

§ima_formula: Option<String>

IMA-approved chemical formula.

§ima_status: Option<Vec<String>>

IMA status values.

§ima_notes: Option<Vec<String>>

IMA notes.

§varietyof: Option<i32>

Variety of (geomaterial ID).

§synid: Option<i32>

Synonym of (geomaterial ID).

§polytypeof: Option<i32>

Polytype of (geomaterial ID).

§groupid: Option<i32>

Group ID (member of).

§entrytype: Option<i32>

Entry type (0=mineral, 1=synonym, 2=variety, etc.).

§entrytype_text: Option<String>

Entry type as text.

§description_short: Option<String>

Short description.

§impurities: Option<String>

Common impurities.

§elements: Option<Vec<String>>

Elements present.

§sigelements: Option<Vec<String>>

Significant elements.

§key_elements: Option<Vec<String>>

Key elements (important for mining).

§tlform: Option<String>

Type locality form.

§cim: Option<String>

HEY index.

§occurrence: Option<String>

Type locality occurrence.

§otheroccurrence: Option<String>

Other occurrences.

§industrial: Option<String>

Industrial uses.

§discovery_year: Option<String>

Discovery year.

§approval_year: Option<u32>

Approval year.

§publication_year: Option<u32>

Publication year.

§ima_history: Option<String>

IMA history.

§diapheny: Option<String>

Transparency (diapheny).

§cleavage: Option<String>

Cleavage description.

§cleavagetype: Option<String>

Cleavage type.

§parting: Option<String>

Parting.

§tenacity: Option<String>

Tenacity.

§colour: Option<String>

Colour description.

§csmetamict: Option<i32>

Metamict flag.

§opticalextinction: Option<String>

Optical extinction direction.

§hmin: Option<f64>

Minimum Mohs hardness.

§hmax: Option<f64>

Maximum Mohs hardness.

§hardtype: Option<i32>

Hardness type.

§vhnmin: Option<String>

Vickers hardness minimum.

§vhnmax: Option<String>

Vickers hardness maximum.

§vhnerror: Option<i32>

Vickers hardness error.

§vhng: Option<i32>

Vickers hardness weight.

§vhns: Option<i32>

Vickers hardness time.

§luminescence: Option<String>

Luminescence.

§lustre: Option<String>

Lustre description.

§lustretype: Option<String>

Lustre type.

§aboutname: Option<String>

About name reference.

§other: Option<String>

Other information.

§streak: Option<String>

Streak colour.

§csystem: Option<String>

Crystal system.

§cclass: Option<i32>

Crystal class (point group ID).

§spacegroup: Option<i32>

Space group ID.

§spacegroupset: Option<String>

Space group setting.

§a: Option<String>

Unit cell a.

§b: Option<String>

Unit cell b.

§c: Option<String>

Unit cell c.

§alpha: Option<String>

Unit cell alpha.

§beta: Option<String>

Unit cell beta.

§gamma: Option<String>

Unit cell gamma.

§va3: Option<f64>

Unit cell volume.

§z: Option<i32>

Z value.

§dmeas: Option<String>

Measured density minimum.

§dmeas2: Option<String>

Measured density maximum.

§dcalc: Option<String>

Calculated density.

§fracturetype: Option<String>

Fracture type.

§morphology: Option<String>

Morphology.

§twinning: Option<String>

Twinning.

§epitaxidescription: Option<String>

Epitaxy description.

§opticaltype: Option<String>

Optical type.

§opticalsign: Option<String>

Optical sign.

§opticalalpha: Option<String>

Refractive index alpha.

§opticalbeta: Option<String>

Refractive index beta.

§opticalgamma: Option<String>

Refractive index gamma.

§opticalomega: Option<String>

Refractive index omega.

§opticalepsilon: Option<String>

Refractive index epsilon.

§opticaln: Option<String>

Refractive index n.

§optical2vcalc: Option<String>

2V calculated.

§optical2vmeasured: Option<String>

2V measured.

§opticaldispersion: Option<String>

Optical dispersion.

§opticalpleochroism: Option<String>

Pleochroism.

§opticalpleochorismdesc: Option<String>

Pleochroism description.

§opticalbirefringence: Option<String>

Birefringence.

§opticalcomments: Option<String>

Optical comments.

§opticalcolour: Option<String>

Colour in reflected light.

§opticalinternal: Option<String>

Internal reflections.

§opticaltropic: Option<String>

Optical tropic.

§opticalanisotropism: Option<String>

Anisotropism.

§opticalbireflectance: Option<String>

Bireflectance.

§opticalr: Option<String>

Optical reflectivity.

§rimin: Option<f64>

Refractive index minimum.

§rimax: Option<f64>

Refractive index maximum.

§uv: Option<String>

UV fluorescence.

§ir: Option<String>

IR spectrum.

§magnetism: Option<String>

Magnetism.

§type_specimen_store: Option<String>

Type specimen storage location.

§shortcode_ima: Option<String>

IMA shortcode.

§strunz10ed1: Option<String>

Strunz classification (10th ed) parts.

§strunz10ed2: Option<String>§strunz10ed3: Option<String>§strunz10ed4: Option<String>§dana8ed1: Option<String>

Dana classification (8th ed) parts.

§dana8ed2: Option<String>§dana8ed3: Option<String>§dana8ed4: Option<String>§thermalbehaviour: Option<String>

Thermal behaviour.

§electrical: Option<String>

Electrical properties.

§rock_parent: Option<i32>

Rock parent ID.

§rock_parent2: Option<i32>

Rock parent 2 ID.

§rock_root: Option<i32>

Rock root ID.

§rock_bgs_code: Option<String>

Rock BGS code.

§meteoritical_code: Option<String>

Meteoritical code.

§weighting: Option<i32>

Weighting.

§relations: Option<Vec<Relation>>

Relations to other geomaterials.

§minstats: Option<MinStats>

Mineral statistics.

§locality: Option<Vec<i32>>

Localities where found.

§type_localities: Option<Vec<i32>>

Type localities.

Trait Implementations§

Source§

impl Clone for Geomaterial

Source§

fn clone(&self) -> Geomaterial

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Geomaterial

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Geomaterial

Source§

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 Serialize for Geomaterial

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,