pub struct ConfigBuilder { /* private fields */ }Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
pub fn new() -> Self
pub fn species(self, specimens: HashMap<i32, SpeciesData>) -> Self
pub fn species_json(self, json_string: &str) -> Result<Self, Error>
pub fn species_json_file( self, json_file_path: &Path, ) -> Result<Self, Box<dyn Error>>
pub fn locations(self, locations: HashMap<i32, LocationData>) -> Self
pub fn locations_json(self, json_string: &str) -> Result<Self, Error>
pub fn locations_json_file( self, json_file_path: &Path, ) -> Result<Self, Box<dyn Error>>
pub fn items(self, items: HashMap<i32, ItemData>) -> Self
pub fn items_json(self, json_string: &str) -> Result<Self, Error>
pub fn items_json_file( self, json_file_path: &Path, ) -> Result<Self, Box<dyn Error>>
pub fn settings(self, settings: Settings) -> Self
pub fn settings_json(self, json_string: &str) -> Result<Self, Error>
pub fn settings_json_file( self, json_file_path: &Path, ) -> Result<Self, Box<dyn Error>>
pub fn map_items_by_category(&mut self)
pub fn validate(&self) -> ConfigValidationReport
Trait Implementations§
Source§impl Debug for ConfigBuilder
impl Debug for ConfigBuilder
Source§impl Default for ConfigBuilder
impl Default for ConfigBuilder
Source§fn default() -> ConfigBuilder
fn default() -> ConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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