pub enum ContextProjectionState {
Candidate,
Expanded,
Skipped,
Suppressed,
Rejected,
Superseded,
Stale,
Conflict,
Escalated,
Other(String),
}Expand description
Provider-neutral lifecycle state for a projected context item.
Producer crates can attach this to ContextProvenance when the host needs
to explain why a candidate was expanded, skipped, suppressed, superseded, or
escalated before it reached ContextPack::pack. The packer still records
its own final ContextOmissionReason for items omitted by budget or item
count.
Variants§
Candidate
Candidate is eligible for packing.
Expanded
Candidate was expanded from a source item into derived context.
Skipped
Candidate was skipped before packing.
Suppressed
Candidate was suppressed by caller policy.
Rejected
Candidate was rejected by caller policy.
Superseded
Candidate was superseded by a newer or more authoritative item.
Stale
Candidate is stale relative to a newer version.
Conflict
Candidate conflicts with another item and needs host resolution.
Escalated
Candidate was escalated for higher-level handling.
Other(String)
Caller-defined state.
Trait Implementations§
Source§impl Clone for ContextProjectionState
impl Clone for ContextProjectionState
Source§fn clone(&self) -> ContextProjectionState
fn clone(&self) -> ContextProjectionState
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 ContextProjectionState
impl Debug for ContextProjectionState
Source§impl<'de> Deserialize<'de> for ContextProjectionState
impl<'de> Deserialize<'de> for ContextProjectionState
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>,
Source§impl PartialEq for ContextProjectionState
impl PartialEq for ContextProjectionState
Source§fn eq(&self, other: &ContextProjectionState) -> bool
fn eq(&self, other: &ContextProjectionState) -> bool
self and other values to be equal, and is used by ==.