pub struct ContextQualityReceiptV1 {
pub kind: String,
pub schema_version: u32,
pub evidence_tier: EvidenceTier,
pub transformation: TransformationEvidence,
pub retention: RetentionReport,
pub recovery: Option<RecoveryEvidence>,
pub task_quality: DimensionState,
}Fields§
§kind: String§schema_version: u32§evidence_tier: EvidenceTier§transformation: TransformationEvidence§retention: RetentionReport§recovery: Option<RecoveryEvidence>None when no recovery handle was emitted or verified for this delivery.
task_quality: DimensionStateTask quality is a model evaluation (lean-ctx eval ab); a single transformation
never measures it.
Implementations§
Source§impl ContextQualityReceiptV1
impl ContextQualityReceiptV1
Sourcepub fn assess(
source_type: &str,
transformation_mode: &str,
original: &str,
delivered: &str,
recovery: RecoveryPath,
recovery_evidence: Option<RecoveryEvidence>,
) -> ContextQualityReceiptV1
pub fn assess( source_type: &str, transformation_mode: &str, original: &str, delivered: &str, recovery: RecoveryPath, recovery_evidence: Option<RecoveryEvidence>, ) -> ContextQualityReceiptV1
Builds the receipt for original → delivered. recovery states whether the
original stays reachable through a verified path.
pub fn retention_state(&self) -> DimensionState
pub fn recovery_state(&self) -> DimensionState
Sourcepub fn passes(&self) -> bool
pub fn passes(&self) -> bool
No measured dimension failed. This is what a gate checks; it is not a claim of
measured success — see Self::overall_state.
Sourcepub fn overall_state(&self) -> DimensionState
pub fn overall_state(&self) -> DimensionState
Fail if any measured dimension failed, Unmeasured if neither retention nor
recovery measured anything, Pass only when something was measured and held.
Trait Implementations§
Source§impl Clone for ContextQualityReceiptV1
impl Clone for ContextQualityReceiptV1
Source§fn clone(&self) -> ContextQualityReceiptV1
fn clone(&self) -> ContextQualityReceiptV1
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 ContextQualityReceiptV1
impl Debug for ContextQualityReceiptV1
Source§impl<'de> Deserialize<'de> for ContextQualityReceiptV1
impl<'de> Deserialize<'de> for ContextQualityReceiptV1
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextQualityReceiptV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextQualityReceiptV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContextQualityReceiptV1
impl PartialEq for ContextQualityReceiptV1
Source§impl Serialize for ContextQualityReceiptV1
impl Serialize for ContextQualityReceiptV1
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
impl StructuralPartialEq for ContextQualityReceiptV1
Auto Trait Implementations§
impl Forget for ContextQualityReceiptV1
impl Freeze for ContextQualityReceiptV1
impl Move for ContextQualityReceiptV1
impl RefUnwindSafe for ContextQualityReceiptV1
impl Send for ContextQualityReceiptV1where
RawVecInner: Send,
impl Sync for ContextQualityReceiptV1where
RawVecInner: Sync,
impl Unpin for ContextQualityReceiptV1
impl UnsafeUnpin for ContextQualityReceiptV1where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ProbeKind>: UnsafeUnpin,
impl UnwindSafe for ContextQualityReceiptV1where
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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