pub struct RealityTraceMetadata {
pub reality_level: Option<RealityLevel>,
pub reality_continuum_type: RealityContinuumType,
pub blend_ratio: f64,
pub data_source_breakdown: DataSourceBreakdown,
pub active_persona_id: Option<String>,
pub active_scenario: Option<String>,
pub active_chaos_profiles: Vec<String>,
pub active_latency_profiles: Vec<String>,
}Expand description
Reality trace metadata for a request
Captures information about how the response was generated, including reality level, data sources, active personas, scenarios, and chaos profiles.
Fields§
§reality_level: Option<RealityLevel>Reality level (1-5) from RealityLevel enum
reality_continuum_type: RealityContinuumTypeReality continuum type (Synthetic/Blended/Live)
blend_ratio: f64Blend ratio used (0.0 = mock, 1.0 = real)
data_source_breakdown: DataSourceBreakdownData source breakdown showing percentages
active_persona_id: Option<String>Active persona ID (if any)
active_scenario: Option<String>Active scenario identifier (if any)
active_chaos_profiles: Vec<String>Active chaos profiles/rules
active_latency_profiles: Vec<String>Active latency profiles
Implementations§
Source§impl RealityTraceMetadata
impl RealityTraceMetadata
Sourcepub fn from_unified_state(
unified_state: &UnifiedState,
blend_ratio: f64,
path: &str,
) -> Self
pub fn from_unified_state( unified_state: &UnifiedState, blend_ratio: f64, path: &str, ) -> Self
Create reality trace metadata from unified state and blend ratio
Builds metadata from the consistency engine’s unified state and the actual blend ratio used for the request.
Trait Implementations§
Source§impl Clone for RealityTraceMetadata
impl Clone for RealityTraceMetadata
Source§fn clone(&self) -> RealityTraceMetadata
fn clone(&self) -> RealityTraceMetadata
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 RealityTraceMetadata
impl Debug for RealityTraceMetadata
Source§impl Default for RealityTraceMetadata
impl Default for RealityTraceMetadata
Source§impl<'de> Deserialize<'de> for RealityTraceMetadata
impl<'de> Deserialize<'de> for RealityTraceMetadata
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 RealityTraceMetadata
impl RefUnwindSafe for RealityTraceMetadata
impl Send for RealityTraceMetadata
impl Sync for RealityTraceMetadata
impl Unpin for RealityTraceMetadata
impl UnwindSafe for RealityTraceMetadata
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