pub struct EffectObservationBundleV1 {
pub schema_version: String,
pub effect_observation_bundle_id: EffectObservationBundleId,
pub effect_execution_receipt_id: EffectExecutionReceiptId,
pub citation: V25ConstitutionCitation,
pub observation_window: String,
pub observation_state: ObservationStateV1,
pub observed_outcome: String,
pub drift_summary: String,
pub external_evidence_refs: Vec<String>,
pub closure_recommendation: ClosureRecommendationV1,
pub generated_at: String,
}Expand description
Post-execution observation bundle that captures observed outcome, drift, and closure recommendation.
Complete observations require non-empty external evidence refs.
Fields§
§schema_version: String§effect_observation_bundle_id: EffectObservationBundleId§effect_execution_receipt_id: EffectExecutionReceiptId§citation: V25ConstitutionCitationCarries EffectiveConstitutionId and CompiledObligationSetId via the canonical v25 citation.
observation_window: String§observation_state: ObservationStateV1§observed_outcome: String§drift_summary: String§external_evidence_refs: Vec<String>§closure_recommendation: ClosureRecommendationV1§generated_at: StringImplementations§
Source§impl EffectObservationBundleV1
impl EffectObservationBundleV1
pub const SCHEMA_VERSION: &'static str = "EffectObservationBundleV1"
Sourcepub fn builder(
effect_observation_bundle_id: EffectObservationBundleId,
effect_execution_receipt_id: EffectExecutionReceiptId,
citation: V25ConstitutionCitation,
observation_window: impl Into<String>,
observation_state: ObservationStateV1,
observed_outcome: impl Into<String>,
drift_summary: impl Into<String>,
external_evidence_refs: Vec<String>,
closure_recommendation: ClosureRecommendationV1,
generated_at: impl Into<String>,
) -> EffectObservationBundleV1Builder
pub fn builder( effect_observation_bundle_id: EffectObservationBundleId, effect_execution_receipt_id: EffectExecutionReceiptId, citation: V25ConstitutionCitation, observation_window: impl Into<String>, observation_state: ObservationStateV1, observed_outcome: impl Into<String>, drift_summary: impl Into<String>, external_evidence_refs: Vec<String>, closure_recommendation: ClosureRecommendationV1, generated_at: impl Into<String>, ) -> EffectObservationBundleV1Builder
Returns a builder for a validated observation bundle artifact.
Sourcepub fn validate(&self) -> EffectValidationResult
pub fn validate(&self) -> EffectValidationResult
Validates the owner-side invariants for an observation bundle.
Trait Implementations§
Source§impl Clone for EffectObservationBundleV1
impl Clone for EffectObservationBundleV1
Source§fn clone(&self) -> EffectObservationBundleV1
fn clone(&self) -> EffectObservationBundleV1
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 moreSource§impl Debug for EffectObservationBundleV1
impl Debug for EffectObservationBundleV1
Source§impl<'de> Deserialize<'de> for EffectObservationBundleV1
impl<'de> Deserialize<'de> for EffectObservationBundleV1
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 EffectObservationBundleV1
impl JsonSchema for EffectObservationBundleV1
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 moreSource§impl PartialEq for EffectObservationBundleV1
impl PartialEq for EffectObservationBundleV1
Source§fn eq(&self, other: &EffectObservationBundleV1) -> bool
fn eq(&self, other: &EffectObservationBundleV1) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EffectObservationBundleV1
Auto Trait Implementations§
impl Freeze for EffectObservationBundleV1
impl RefUnwindSafe for EffectObservationBundleV1
impl Send for EffectObservationBundleV1
impl Sync for EffectObservationBundleV1
impl Unpin for EffectObservationBundleV1
impl UnsafeUnpin for EffectObservationBundleV1
impl UnwindSafe for EffectObservationBundleV1
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