pub struct ContinuumConfig {
pub enabled: bool,
pub default_ratio: f64,
pub transition_mode: TransitionMode,
pub time_schedule: Option<TimeSchedule>,
pub merge_strategy: MergeStrategy,
pub routes: Vec<ContinuumRule>,
pub groups: HashMap<String, f64>,
}Expand description
Configuration for Reality Continuum
Fields§
§enabled: boolWhether the continuum feature is enabled
default_ratio: f64Default blend ratio (0.0 = 100% mock, 1.0 = 100% real)
transition_mode: TransitionModeTransition mode for blend ratio progression
time_schedule: Option<TimeSchedule>Time schedule for time-based transitions (optional)
merge_strategy: MergeStrategyMerge strategy for blending responses
routes: Vec<ContinuumRule>Per-route blend ratio overrides
groups: HashMap<String, f64>Group-level blend ratio overrides
Implementations§
Source§impl ContinuumConfig
impl ContinuumConfig
Sourcepub fn with_default_ratio(self, ratio: f64) -> Self
pub fn with_default_ratio(self, ratio: f64) -> Self
Set the default blend ratio
Sourcepub fn with_transition_mode(self, mode: TransitionMode) -> Self
pub fn with_transition_mode(self, mode: TransitionMode) -> Self
Set the transition mode
Sourcepub fn with_time_schedule(self, schedule: TimeSchedule) -> Self
pub fn with_time_schedule(self, schedule: TimeSchedule) -> Self
Set the time schedule
Sourcepub fn with_merge_strategy(self, strategy: MergeStrategy) -> Self
pub fn with_merge_strategy(self, strategy: MergeStrategy) -> Self
Set the merge strategy
Sourcepub fn add_route(self, rule: ContinuumRule) -> Self
pub fn add_route(self, rule: ContinuumRule) -> Self
Add a route-specific rule
Sourcepub fn set_group_ratio(self, group: String, ratio: f64) -> Self
pub fn set_group_ratio(self, group: String, ratio: f64) -> Self
Set a group-level blend ratio
Trait Implementations§
Source§impl Clone for ContinuumConfig
impl Clone for ContinuumConfig
Source§fn clone(&self) -> ContinuumConfig
fn clone(&self) -> ContinuumConfig
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 ContinuumConfig
impl Debug for ContinuumConfig
Source§impl Default for ContinuumConfig
impl Default for ContinuumConfig
Source§impl<'de> Deserialize<'de> for ContinuumConfig
impl<'de> Deserialize<'de> for ContinuumConfig
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 ContinuumConfig
impl RefUnwindSafe for ContinuumConfig
impl Send for ContinuumConfig
impl Sync for ContinuumConfig
impl Unpin for ContinuumConfig
impl UnwindSafe for ContinuumConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more