pub struct EffectReviewCaseV1 {Show 14 fields
pub schema_version: String,
pub effect_review_case_id: EffectReviewCaseId,
pub effect_intent_id: EffectIntentId,
pub effect_preflight_report_id: EffectPreflightReportId,
pub effect_commit_decision_id: Option<EffectCommitDecisionId>,
pub citation: V25CitationContext,
pub obligation_refs: V25ControlObligationRefs,
pub citation_status: ConstitutionalContextStatus,
pub obligation_refs_status: ConstitutionalContextStatus,
pub required_policy_refs: Vec<String>,
pub decision_basis: String,
pub final_state: EffectReviewFinalStateV1,
pub advisory_only: bool,
pub generated_at: String,
}Expand description
A review case for an effect-system action (intent, preflight, commit decision).
Gates side-effecting actions through constitutional citation and obligation checks.
Fields§
§schema_version: String§effect_review_case_id: EffectReviewCaseId§effect_intent_id: EffectIntentId§effect_preflight_report_id: EffectPreflightReportId§effect_commit_decision_id: Option<EffectCommitDecisionId>§citation: V25CitationContext§obligation_refs: V25ControlObligationRefs§citation_status: ConstitutionalContextStatus§obligation_refs_status: ConstitutionalContextStatus§required_policy_refs: Vec<String>§decision_basis: String§final_state: EffectReviewFinalStateV1§advisory_only: bool§generated_at: StringImplementations§
Source§impl EffectReviewCaseV1
impl EffectReviewCaseV1
Sourcepub fn new(
effect_intent_id: EffectIntentId,
effect_preflight_report_id: EffectPreflightReportId,
effect_commit_decision_id: Option<EffectCommitDecisionId>,
citation: V25CitationContext,
obligation_refs: V25ControlObligationRefs,
required_policy_refs: Vec<String>,
decision_basis: impl Into<String>,
final_state: EffectReviewFinalStateV1,
advisory_only: bool,
generated_at: impl Into<String>,
) -> Result<Self, String>
pub fn new( effect_intent_id: EffectIntentId, effect_preflight_report_id: EffectPreflightReportId, effect_commit_decision_id: Option<EffectCommitDecisionId>, citation: V25CitationContext, obligation_refs: V25ControlObligationRefs, required_policy_refs: Vec<String>, decision_basis: impl Into<String>, final_state: EffectReviewFinalStateV1, advisory_only: bool, generated_at: impl Into<String>, ) -> Result<Self, String>
Creates an effect review case with computed constitutional context status.
Trait Implementations§
Source§impl Clone for EffectReviewCaseV1
impl Clone for EffectReviewCaseV1
Source§fn clone(&self) -> EffectReviewCaseV1
fn clone(&self) -> EffectReviewCaseV1
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 EffectReviewCaseV1
impl Debug for EffectReviewCaseV1
Source§impl<'de> Deserialize<'de> for EffectReviewCaseV1
impl<'de> Deserialize<'de> for EffectReviewCaseV1
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
impl Eq for EffectReviewCaseV1
Source§impl JsonSchema for EffectReviewCaseV1
impl JsonSchema for EffectReviewCaseV1
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 EffectReviewCaseV1
impl PartialEq for EffectReviewCaseV1
Source§fn eq(&self, other: &EffectReviewCaseV1) -> bool
fn eq(&self, other: &EffectReviewCaseV1) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EffectReviewCaseV1
impl Serialize for EffectReviewCaseV1
impl StructuralPartialEq for EffectReviewCaseV1
Auto Trait Implementations§
impl Freeze for EffectReviewCaseV1
impl RefUnwindSafe for EffectReviewCaseV1
impl Send for EffectReviewCaseV1
impl Sync for EffectReviewCaseV1
impl Unpin for EffectReviewCaseV1
impl UnsafeUnpin for EffectReviewCaseV1
impl UnwindSafe for EffectReviewCaseV1
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