Skip to main content

LiabilityClaimAdjudicationArtifact

Struct LiabilityClaimAdjudicationArtifact 

Source
pub struct LiabilityClaimAdjudicationArtifact {
    pub schema: String,
    pub adjudication_id: String,
    pub issued_at: u64,
    pub dispute: SignedExportEnvelope<LiabilityClaimDisputeArtifact>,
    pub adjudicator: String,
    pub outcome: LiabilityClaimAdjudicationOutcome,
    pub awarded_amount: Option<MonetaryAmount>,
    pub note: Option<String>,
    pub decision_rule_ref: Option<String>,
    pub roster_anchor_ref: Option<String>,
    pub evidence_refs: Vec<LiabilityClaimEvidenceReference>,
}

Fields§

§schema: String§adjudication_id: String§issued_at: u64§dispute: SignedExportEnvelope<LiabilityClaimDisputeArtifact>§adjudicator: String§outcome: LiabilityClaimAdjudicationOutcome§awarded_amount: Option<MonetaryAmount>§note: Option<String>§decision_rule_ref: Option<String>

Predeclared decision rule or circuit-breaker condition id the adjudication applied (ADR-0015 follow-up B). Optional and omitted when absent so existing signed fixtures keep byte-stable canonical JSON.

§roster_anchor_ref: Option<String>

Id or hash of the signed roster artifact the adjudicator was checked against (ADR-0015 follow-up B anchoring). Records which ex-ante roster was applied so the check is auditable and not per-adjudication fabricable.

§evidence_refs: Vec<LiabilityClaimEvidenceReference>

Implementations§

Source§

impl LiabilityClaimAdjudicationArtifact

Source

pub fn validate(&self) -> Result<(), String>

Source

pub fn validate_against_roster( &self, roster: &[String], allowed_decision_rules: &[String], roster_anchor: &str, ) -> Result<(), String>

Fail-closed policy gate for ADR-0015 follow-up B.

Requires the adjudicator to be an exact (trimmed) member of the operator-supplied predeclared roster, requires decision_rule_ref to be present and a member of allowed_decision_rules, and requires the recorded roster_anchor_ref to equal roster_anchor (the id/hash of the signed roster artifact the roster was drawn from). Callers pass concrete values so chio-market needs no dependency on the roster’s source crate.

Trait Implementations§

Source§

impl Clone for LiabilityClaimAdjudicationArtifact

Source§

fn clone(&self) -> LiabilityClaimAdjudicationArtifact

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LiabilityClaimAdjudicationArtifact

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for LiabilityClaimAdjudicationArtifact

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<LiabilityClaimAdjudicationArtifact, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for LiabilityClaimAdjudicationArtifact

Source§

fn eq(&self, other: &LiabilityClaimAdjudicationArtifact) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for LiabilityClaimAdjudicationArtifact

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for LiabilityClaimAdjudicationArtifact

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.