pub struct Findings {
pub resolved_keys: Vec<String>,
pub unresolved_keys: Vec<String>,
pub key_suggestions: Vec<String>,
pub vocabulary_partial: bool,
}Expand description
What resolution learned, for the agent_surface record.
Fields§
§resolved_keys: Vec<String>Keys asked for by --select that the shaped payload can actually carry.
unresolved_keys: Vec<String>Keys asked for by --select that nothing in scope carries.
Non-empty here means the projection succeeded PARTIALLY. A caller that gets fewer fields than it asked for learns why from this list instead of concluding the records were incomplete.
key_suggestions: Vec<String>Names the caller might have meant, for the keys that failed.
Carried as DATA rather than folded into a sentence: a refusal message is
localized, so parsing the suggestion out of it would mean parsing prose in
one of two languages. rules-rust-cli-com-clap-io-exitcodes-erros asks a
refusal to carry a corrective action, and the agent-native contract asks
the action to be machine-readable.
vocabulary_partial: boolWhether the suggestion vocabulary was sampled rather than exhaustive.
Never weakens a verdict — Scope::classify always scans every element.
It qualifies the ADVICE: a short list under a partial vocabulary means
“the sampler stopped”, not “nothing resembles your key”.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Findings
impl RefUnwindSafe for Findings
impl Send for Findings
impl Sync for Findings
impl Unpin for Findings
impl UnsafeUnpin for Findings
impl UnwindSafe for Findings
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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