pub struct LetheConfig {
pub version: String,
pub description: Option<String>,
pub retrieval: RetrievalConfig,
pub chunking: ChunkingConfig,
pub timeouts: TimeoutsConfig,
pub features: Option<FeaturesConfig>,
pub query_understanding: Option<QueryUnderstandingConfig>,
pub ml: Option<MlConfig>,
pub development: Option<DevelopmentConfig>,
pub lens: Option<LensConfig>,
pub proxy: Option<ProxyConfig>,
}Expand description
Main configuration structure
Fields§
§version: String§description: Option<String>§retrieval: RetrievalConfig§chunking: ChunkingConfig§timeouts: TimeoutsConfig§features: Option<FeaturesConfig>§query_understanding: Option<QueryUnderstandingConfig>§ml: Option<MlConfig>§development: Option<DevelopmentConfig>§lens: Option<LensConfig>§proxy: Option<ProxyConfig>Implementations§
Source§impl LetheConfig
impl LetheConfig
Sourcepub fn merge_with(&mut self, other: &Self)
pub fn merge_with(&mut self, other: &Self)
Merge with another configuration, preferring other’s values
Sourcepub fn builder() -> LetheConfigBuilder
pub fn builder() -> LetheConfigBuilder
Builder pattern for creating configurations
Trait Implementations§
Source§impl Clone for LetheConfig
impl Clone for LetheConfig
Source§fn clone(&self) -> LetheConfig
fn clone(&self) -> LetheConfig
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 LetheConfig
impl Debug for LetheConfig
Source§impl Default for LetheConfig
impl Default for LetheConfig
Source§impl<'de> Deserialize<'de> for LetheConfig
impl<'de> Deserialize<'de> for LetheConfig
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 LetheConfig
impl RefUnwindSafe for LetheConfig
impl Send for LetheConfig
impl Sync for LetheConfig
impl Unpin for LetheConfig
impl UnwindSafe for LetheConfig
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