pub struct SemanticOverlayState {Show 14 fields
pub version: u32,
pub title: String,
pub source: StudioSource,
pub frame_id: String,
pub expected_frame_id: String,
pub time_basis: String,
pub model: SemanticOverlayModel,
pub classes: Vec<SemanticOverlayClass>,
pub entities: Vec<SemanticOverlayEntity>,
pub artifacts: Vec<ReplayArtifact>,
pub summary: SemanticOverlaySummary,
pub overlay_ready: bool,
pub mapping_admitted: bool,
pub blockers: Vec<String>,
}Expand description
Portable dashboard state for an AI semantic overlay.
Fields§
§version: u32Serialized state schema version.
title: StringUser-facing dashboard title.
source: StudioSourceChecksummed source identity consumed by the model adapter.
frame_id: StringCoordinate frame of all overlay entities.
expected_frame_id: StringFrame requested by the operation contract.
time_basis: StringTimestamp basis associated with the source artifact.
model: SemanticOverlayModelExplicit model/runtime and transfer receipt.
classes: Vec<SemanticOverlayClass>Class legend and aggregate counts.
entities: Vec<SemanticOverlayEntity>Quantized predictions rendered by the dashboard/adapter.
artifacts: Vec<ReplayArtifact>Checksummed input/output artifacts represented by this state.
summary: SemanticOverlaySummaryAggregate semantic quality and source-binding metrics.
overlay_ready: boolWhether the source-bound semantic overlay is ready for inspection.
mapping_admitted: boolWhether downstream calibrated mapping is admitted.
blockers: Vec<String>Fail-closed reasons for overlay or mapping admission.
Implementations§
Source§impl SemanticOverlayState
impl SemanticOverlayState
Sourcepub fn try_new(
title: impl Into<String>,
source: StudioSource,
frame_id: impl Into<String>,
expected_frame_id: impl Into<String>,
time_basis: impl Into<String>,
model: SemanticOverlayModel,
classes: Vec<SemanticOverlayClass>,
entities: Vec<SemanticOverlayEntity>,
artifacts: Vec<ReplayArtifact>,
summary: SemanticOverlaySummary,
blockers: Vec<String>,
) -> ViewerResult<Self>
pub fn try_new( title: impl Into<String>, source: StudioSource, frame_id: impl Into<String>, expected_frame_id: impl Into<String>, time_basis: impl Into<String>, model: SemanticOverlayModel, classes: Vec<SemanticOverlayClass>, entities: Vec<SemanticOverlayEntity>, artifacts: Vec<ReplayArtifact>, summary: SemanticOverlaySummary, blockers: Vec<String>, ) -> ViewerResult<Self>
Creates a state and derives overlay/mapping admission flags.
Sourcepub fn validate(&self) -> ViewerResult<()>
pub fn validate(&self) -> ViewerResult<()>
Validates all source, class, entity, artifact, and admission invariants.
Trait Implementations§
Source§impl Clone for SemanticOverlayState
impl Clone for SemanticOverlayState
Source§fn clone(&self) -> SemanticOverlayState
fn clone(&self) -> SemanticOverlayState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SemanticOverlayState
impl Debug for SemanticOverlayState
Source§impl<'de> Deserialize<'de> for SemanticOverlayState
impl<'de> Deserialize<'de> for SemanticOverlayState
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>,
Source§impl PartialEq for SemanticOverlayState
impl PartialEq for SemanticOverlayState
Source§fn eq(&self, other: &SemanticOverlayState) -> bool
fn eq(&self, other: &SemanticOverlayState) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SemanticOverlayState
impl Serialize for SemanticOverlayState
impl Eq for SemanticOverlayState
impl StructuralPartialEq for SemanticOverlayState
Auto Trait Implementations§
impl Freeze for SemanticOverlayState
impl RefUnwindSafe for SemanticOverlayState
impl Send for SemanticOverlayState
impl Sync for SemanticOverlayState
impl Unpin for SemanticOverlayState
impl UnsafeUnpin for SemanticOverlayState
impl UnwindSafe for SemanticOverlayState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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