pub struct FacetMismatch {
pub facet: &'static str,
pub actual: &'static str,
pub bound: String,
pub admits_count: usize,
}Expand description
The single facet constraint a capability failed, named in the taxonomy’s own vocabulary.
Exists because the engine was write-only: admits answered yes/no and nothing reported WHICH
axis said no, so both a user asking “why was this denied” and an author debugging a resolver had
to bisect by editing facets and re-running. That is not a hypothetical cost — it is how an
incomplete loopback delta got mistaken for a flawed approach.
Fields§
§facet: &'static strDotted facet path as the taxonomy spells it (network.payload, locus.remote).
actual: &'static strThe capability’s term (sends-host-data).
bound: StringThe constraint it failed (<= fetches, one of [pinned, na]).
admits_count: usizeHow many of that axis’s terms the bound DOES admit — how close this clause came.
Used to rank clauses, not shown. A level inherits its ancestors’ clauses (developer
carries paranoid’s observe clause), so several can match on operation and the first is
often the strictest. Reporting that one names a bound the author never intended for this
capability: a cat of a machine-locus path was blamed on <= temp (paranoid’s read floor)
when the read bound that actually matters is <= worktree-trusted.
Trait Implementations§
Source§impl Clone for FacetMismatch
impl Clone for FacetMismatch
Source§fn clone(&self) -> FacetMismatch
fn clone(&self) -> FacetMismatch
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 FacetMismatch
impl Debug for FacetMismatch
Source§impl Display for FacetMismatch
impl Display for FacetMismatch
impl Eq for FacetMismatch
Source§impl PartialEq for FacetMismatch
impl PartialEq for FacetMismatch
impl StructuralPartialEq for FacetMismatch
Auto Trait Implementations§
impl Freeze for FacetMismatch
impl RefUnwindSafe for FacetMismatch
impl Send for FacetMismatch
impl Sync for FacetMismatch
impl Unpin for FacetMismatch
impl UnsafeUnpin for FacetMismatch
impl UnwindSafe for FacetMismatch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.