pub struct MenteConfig {
pub storage: StorageConfig,
pub index: IndexConfig,
pub context: ContextConfig,
pub cognitive: CognitiveConfig,
pub consolidation: ConsolidationConfig,
pub server: ServerConfig,
}Expand description
Top-level configuration for a MenteDB instance.
Fields§
§storage: StorageConfigStorage engine configuration.
index: IndexConfigIndex layer configuration.
context: ContextConfigContext assembly configuration.
cognitive: CognitiveConfigCognitive engine configuration.
consolidation: ConsolidationConfigMemory consolidation configuration.
server: ServerConfigServer configuration.
Implementations§
Source§impl MenteConfig
impl MenteConfig
Sourcepub fn from_file(path: &Path) -> MenteResult<Self>
pub fn from_file(path: &Path) -> MenteResult<Self>
Load configuration from a JSON file.
Trait Implementations§
Source§impl Clone for MenteConfig
impl Clone for MenteConfig
Source§fn clone(&self) -> MenteConfig
fn clone(&self) -> MenteConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MenteConfig
impl Debug for MenteConfig
Source§impl Default for MenteConfig
impl Default for MenteConfig
Source§fn default() -> MenteConfig
fn default() -> MenteConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MenteConfig
impl<'de> Deserialize<'de> for MenteConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MenteConfig
impl RefUnwindSafe for MenteConfig
impl Send for MenteConfig
impl Sync for MenteConfig
impl Unpin for MenteConfig
impl UnsafeUnpin for MenteConfig
impl UnwindSafe for MenteConfig
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