pub struct RuntimeConfig {
pub default_scope: Scope,
pub query: QueryConfig,
pub entity: EntityConfig,
pub projection: ProjectionConfig,
pub strict_temporal: bool,
pub strict_scope: bool,
}Expand description
Top-level runtime configuration.
Fields§
§default_scope: ScopeDefault scope for queries that don’t supply one.
query: QueryConfigQuery pipeline settings.
entity: EntityConfigEntity registry settings.
projection: ProjectionConfigProjection lifecycle settings.
strict_temporal: boolWhen true, temporal queries that cannot be executed on a supported
projection-backed route return RuntimeError::TemporalNotSupported
instead of downgrading to hybrid retrieval with a warning.
Default: false (downgrade with warning).
strict_scope: boolWhen true, queries whose scope includes dimensions beyond namespace
(domain, workspace_id, repo_id) return RuntimeError::ScopeNotFullyEnforced
instead of proceeding with namespace-only hybrid fallback.
Default: false (warn but proceed).
Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
Sourcepub fn normalize_and_validate(&mut self) -> Result<(), RuntimeError>
pub fn normalize_and_validate(&mut self) -> Result<(), RuntimeError>
Validate and normalize configuration. Returns error on invalid values.
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RuntimeConfig
impl Debug for RuntimeConfig
Source§impl<'de> Deserialize<'de> for RuntimeConfig
impl<'de> Deserialize<'de> for RuntimeConfig
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 RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnsafeUnpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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