pub struct Config {
pub species: HashMap<i32, Arc<SpeciesData>>,
pub locations: HashMap<i32, Arc<LocationData>>,
pub settings: Arc<Settings>,
pub specimen_names: Arc<HashMap<i32, String>>,
pub location_names: Arc<HashMap<i32, String>>,
}Fields§
§species: HashMap<i32, Arc<SpeciesData>>Mapping specimen to their species ID
locations: HashMap<i32, Arc<LocationData>>§settings: Arc<Settings>§specimen_names: Arc<HashMap<i32, String>>§location_names: Arc<HashMap<i32, String>>Implementations§
Source§impl Config
impl Config
pub fn builder() -> ConfigBuilder
pub fn get_species_data(&self, species_id: i32) -> Option<Arc<SpeciesData>>
Trait Implementations§
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more