pub struct GeomaterialsQuery {Show 43 fields
pub name: Option<String>,
pub q: Option<String>,
pub ima: Option<bool>,
pub ima_status: Option<Vec<ImaStatus>>,
pub ima_notes: Option<Vec<ImaNotes>>,
pub entrytype: Option<Vec<u8>>,
pub elements_inc: Option<String>,
pub elements_exc: Option<String>,
pub crystal_system: Option<Vec<CrystalSystem>>,
pub cleavagetype: Option<Vec<CleavageType>>,
pub fracturetype: Option<Vec<FractureType>>,
pub lustretype: Option<Vec<LustreType>>,
pub diapheny: Option<Vec<Diapheny>>,
pub tenacity: Option<Vec<Tenacity>>,
pub colour: Option<String>,
pub streak: Option<String>,
pub opticaltype: Option<OpticalType>,
pub opticalsign: Option<OpticalSign>,
pub hardness_min: Option<f32>,
pub hardness_max: Option<f32>,
pub density_min: Option<f64>,
pub density_max: Option<f64>,
pub ri_min: Option<f32>,
pub ri_max: Option<f32>,
pub bi_min: Option<String>,
pub bi_max: Option<String>,
pub optical2v_min: Option<String>,
pub optical2v_max: Option<String>,
pub varietyof: Option<i32>,
pub synid: Option<i32>,
pub polytypeof: Option<i32>,
pub groupid: Option<i32>,
pub id_in: Option<Vec<i32>>,
pub non_utf: Option<bool>,
pub meteoritical_code: Option<String>,
pub meteoritical_code_exists: Option<bool>,
pub updated_at: Option<String>,
pub fields: Option<String>,
pub omit: Option<String>,
pub expand: Option<Vec<String>>,
pub ordering: Option<GeomaterialsOrdering>,
pub page: Option<i32>,
pub page_size: Option<i32>,
}Expand description
Builder for geomaterial query parameters.
Fields§
§name: Option<String>Name filter (supports wildcards * and _).
q: Option<String>Search query.
ima: Option<bool>IMA approved only.
ima_status: Option<Vec<ImaStatus>>IMA status filter.
ima_notes: Option<Vec<ImaNotes>>IMA notes filter.
entrytype: Option<Vec<u8>>Entry types filter.
elements_inc: Option<String>Include elements (comma-separated).
elements_exc: Option<String>Exclude elements (comma-separated).
crystal_system: Option<Vec<CrystalSystem>>Crystal system filter.
cleavagetype: Option<Vec<CleavageType>>Cleavage type filter.
fracturetype: Option<Vec<FractureType>>Fracture type filter.
lustretype: Option<Vec<LustreType>>Lustre type filter.
diapheny: Option<Vec<Diapheny>>Diapheny (transparency) filter.
tenacity: Option<Vec<Tenacity>>Tenacity filter.
colour: Option<String>Colour filter.
streak: Option<String>Streak filter.
opticaltype: Option<OpticalType>Optical type filter.
opticalsign: Option<OpticalSign>Optical sign filter.
hardness_min: Option<f32>Hardness minimum (Mohs).
hardness_max: Option<f32>Hardness maximum (Mohs).
density_min: Option<f64>Density minimum.
density_max: Option<f64>Density maximum.
ri_min: Option<f32>Refractive index minimum.
ri_max: Option<f32>Refractive index maximum.
bi_min: Option<String>Birefringence minimum.
bi_max: Option<String>Birefringence maximum.
optical2v_min: Option<String>2V minimum.
optical2v_max: Option<String>2V maximum.
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.
id_in: Option<Vec<i32>>Filter by IDs.
non_utf: Option<bool>Include non-UTF names.
meteoritical_code: Option<String>Meteoritical code filter.
meteoritical_code_exists: Option<bool>Meteoritical code exists.
updated_at: Option<String>Updated after datetime.
fields: Option<String>Fields to include.
omit: Option<String>Fields to omit.
expand: Option<Vec<String>>Fields to expand.
ordering: Option<GeomaterialsOrdering>Ordering.
page: Option<i32>Page number.
page_size: Option<i32>Page size.
Implementations§
Source§impl GeomaterialsQuery
impl GeomaterialsQuery
Sourcepub fn name(self, name: impl Into<String>) -> Self
pub fn name(self, name: impl Into<String>) -> Self
Filter by name (supports * and _ wildcards).
Sourcepub fn ima_approved(self, approved: bool) -> Self
pub fn ima_approved(self, approved: bool) -> Self
Filter to IMA-approved minerals only.
Sourcepub fn entry_types(self, types: Vec<u8>) -> Self
pub fn entry_types(self, types: Vec<u8>) -> Self
Filter by entry type.
Sourcepub fn with_elements(self, elements: impl Into<String>) -> Self
pub fn with_elements(self, elements: impl Into<String>) -> Self
Filter by included elements.
Sourcepub fn without_elements(self, elements: impl Into<String>) -> Self
pub fn without_elements(self, elements: impl Into<String>) -> Self
Filter by excluded elements.
Sourcepub fn crystal_systems(self, systems: Vec<CrystalSystem>) -> Self
pub fn crystal_systems(self, systems: Vec<CrystalSystem>) -> Self
Filter by crystal system.
Sourcepub fn hardness_range(self, min: f32, max: f32) -> Self
pub fn hardness_range(self, min: f32, max: f32) -> Self
Filter by hardness range.
Sourcepub fn density_range(self, min: f64, max: f64) -> Self
pub fn density_range(self, min: f64, max: f64) -> Self
Filter by density range.
Sourcepub fn select_fields(self, fields: impl Into<String>) -> Self
pub fn select_fields(self, fields: impl Into<String>) -> Self
Select specific fields.
Sourcepub fn omit_fields(self, fields: impl Into<String>) -> Self
pub fn omit_fields(self, fields: impl Into<String>) -> Self
Omit specific fields.
Sourcepub fn expand_fields(self, fields: Vec<String>) -> Self
pub fn expand_fields(self, fields: Vec<String>) -> Self
Expand related fields.
Sourcepub fn order_by(self, ordering: GeomaterialsOrdering) -> Self
pub fn order_by(self, ordering: GeomaterialsOrdering) -> Self
Set ordering.
Trait Implementations§
Source§impl Clone for GeomaterialsQuery
impl Clone for GeomaterialsQuery
Source§fn clone(&self) -> GeomaterialsQuery
fn clone(&self) -> GeomaterialsQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more