pub struct ContextRefCandidate {Show 14 fields
pub ref_id: ContextRefId,
pub summary: String,
pub scope: Vec<String>,
pub confidence: Option<u8>,
pub authority: Option<String>,
pub runtime_mode: RuntimeMode,
pub authority_class: AuthorityClass,
pub proof_state: ClaimProofState,
pub requested_ceiling: ClaimCeiling,
pub provenance_class: ProvenanceClass,
pub semantic_trust: SemanticTrustClass,
pub selection_reason: String,
pub sensitivity: Sensitivity,
pub raw_event_payload: Option<Value>,
}Expand description
Candidate selected by an upstream retrieval/memory layer.
Fields§
§ref_id: ContextRefIdCandidate ref id.
summary: StringSummary or abstracted content.
scope: Vec<String>Scope fields.
confidence: Option<u8>Confidence as a percentage, when known.
Authority tier or source label, when known.
runtime_mode: RuntimeModeRuntime mode bounding this candidate’s authority claim.
Authority class used for ceiling calculation.
proof_state: ClaimProofStateProof closure state for this candidate.
requested_ceiling: ClaimCeilingRequested claim ceiling before weakest-link downgrade.
provenance_class: ProvenanceClassSemantic provenance family for this candidate.
semantic_trust: SemanticTrustClassSemantic trust class for this candidate.
selection_reason: StringSelection reason.
sensitivity: SensitivitySensitivity tier used by redaction.
raw_event_payload: Option<Value>Optional raw event payload from upstream.
Implementations§
Source§impl ContextRefCandidate
impl ContextRefCandidate
Sourcepub fn new(ref_id: ContextRefId, summary: impl Into<String>) -> Self
pub fn new(ref_id: ContextRefId, summary: impl Into<String>) -> Self
Build a minimal candidate from a ref and summary.
Sourcepub fn with_raw_event_payload(self, raw_event_payload: Value) -> Self
pub fn with_raw_event_payload(self, raw_event_payload: Value) -> Self
Attach raw event payload supplied by upstream lineage.
Sourcepub fn with_sensitivity(self, sensitivity: Sensitivity) -> Self
pub fn with_sensitivity(self, sensitivity: Sensitivity) -> Self
Attach sensitivity tier.
Sourcepub fn with_claim_metadata(
self,
runtime_mode: RuntimeMode,
authority_class: AuthorityClass,
proof_state: ClaimProofState,
requested_ceiling: ClaimCeiling,
) -> Self
pub fn with_claim_metadata( self, runtime_mode: RuntimeMode, authority_class: AuthorityClass, proof_state: ClaimProofState, requested_ceiling: ClaimCeiling, ) -> Self
Attach explicit claim metadata for context-pack truth ceilings.
Sourcepub const fn with_semantic_metadata(
self,
provenance_class: ProvenanceClass,
semantic_trust: SemanticTrustClass,
) -> Self
pub const fn with_semantic_metadata( self, provenance_class: ProvenanceClass, semantic_trust: SemanticTrustClass, ) -> Self
Attach explicit semantic provenance/trust metadata.
Trait Implementations§
Source§impl Clone for ContextRefCandidate
impl Clone for ContextRefCandidate
Source§fn clone(&self) -> ContextRefCandidate
fn clone(&self) -> ContextRefCandidate
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 ContextRefCandidate
impl Debug for ContextRefCandidate
Source§impl PartialEq for ContextRefCandidate
impl PartialEq for ContextRefCandidate
Source§fn eq(&self, other: &ContextRefCandidate) -> bool
fn eq(&self, other: &ContextRefCandidate) -> bool
self and other values to be equal, and is used by ==.