pub struct ResolverOutput {
pub state: ResolutionState,
pub selected: Option<ConflictingMemoryInput>,
pub hypotheses: Vec<ConflictingMemoryInput>,
pub reasons: Vec<ResolutionReason>,
}Expand description
Resolver output consumed by later retrieval/context-pack wiring.
Fields§
§state: ResolutionStateResolution state.
selected: Option<ConflictingMemoryInput>Selected candidate when state == Resolved.
hypotheses: Vec<ConflictingMemoryInput>Candidate hypotheses that must be surfaced to callers.
reasons: Vec<ResolutionReason>Reasons supporting the state.
Implementations§
Source§impl ResolverOutput
impl ResolverOutput
Sourcepub fn policy_decision(&self) -> PolicyDecision
pub fn policy_decision(&self) -> PolicyDecision
Derive the ADR 0026 policy decision for this resolver output.
Sourcepub fn require_default_use_allowed(&self) -> CoreResult<()>
pub fn require_default_use_allowed(&self) -> CoreResult<()>
Fail closed before a resolver output is consumed as a default, canonical retrieval result.
Multi-hypothesis and unknown outputs may still be rendered explicitly, but they must not silently act as resolved support for promotion, active-memory updates, or default context-pack inclusion.
Trait Implementations§
Source§impl Clone for ResolverOutput
impl Clone for ResolverOutput
Source§fn clone(&self) -> ResolverOutput
fn clone(&self) -> ResolverOutput
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 ResolverOutput
impl Debug for ResolverOutput
Source§impl PartialEq for ResolverOutput
impl PartialEq for ResolverOutput
Source§fn eq(&self, other: &ResolverOutput) -> bool
fn eq(&self, other: &ResolverOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ResolverOutput
impl StructuralPartialEq for ResolverOutput
Auto Trait Implementations§
impl Freeze for ResolverOutput
impl RefUnwindSafe for ResolverOutput
impl Send for ResolverOutput
impl Sync for ResolverOutput
impl Unpin for ResolverOutput
impl UnsafeUnpin for ResolverOutput
impl UnwindSafe for ResolverOutput
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