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>,
pub field_mixing: Option<FieldRealityConfig>,
pub cross_protocol_state: Option<CrossProtocolStateConfig>,
}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
field_mixing: Option<FieldRealityConfig>Field-level reality mixing configuration
cross_protocol_state: Option<CrossProtocolStateConfig>Cross-protocol state sharing configuration
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
Sourcepub fn with_cross_protocol_state(self, config: CrossProtocolStateConfig) -> Self
pub fn with_cross_protocol_state(self, config: CrossProtocolStateConfig) -> Self
Set cross-protocol state configuration
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
Source§impl JsonSchema for ContinuumConfig
impl JsonSchema for ContinuumConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto 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