pub struct ShadowObservation {
pub id: i64,
pub memory_id: String,
pub namespace: String,
pub source: String,
pub caller_confidence: f64,
pub derived_confidence: f64,
pub signals_json: String,
pub recall_outcome: Option<String>,
pub observed_at: String,
}Expand description
One row of confidence_shadow_observations as exposed to readers.
signals_json stays as a raw string because the calibration sweep
usually doesn’t need to deserialise it (the (namespace, source) key
is enough). Callers that want the typed envelope can parse it
themselves via serde_json::from_str::<ConfidenceSignals>.
Fields§
§id: i64§memory_id: String§namespace: String§source: StringDenormalised memories.source role label. Added in schema v40
(sqlite) / v39 (postgres) under Cluster G so the calibration
sweep can stream a single-table SQL aggregation. Legacy rows
backfill to the joined memories.source value or 'unknown'.
caller_confidence: f64§derived_confidence: f64§signals_json: String§recall_outcome: Option<String>§observed_at: StringTrait Implementations§
Source§impl Clone for ShadowObservation
impl Clone for ShadowObservation
Source§fn clone(&self) -> ShadowObservation
fn clone(&self) -> ShadowObservation
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 moreAuto Trait Implementations§
impl Freeze for ShadowObservation
impl RefUnwindSafe for ShadowObservation
impl Send for ShadowObservation
impl Sync for ShadowObservation
impl Unpin for ShadowObservation
impl UnsafeUnpin for ShadowObservation
impl UnwindSafe for ShadowObservation
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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