pub struct MatchSpec {
pub source: NodeMatcher,
pub sink: NodeMatcher,
pub path: PathMatcher,
pub graph_metadata: MetadataMatcher,
pub standalone: Option<NodeMatcher>,
}Fields§
§source: NodeMatcher§sink: NodeMatcher§path: PathMatcher§graph_metadata: MetadataMatcherGraph-level metadata predicate. Applied to AuthorityGraph::metadata
(e.g. META_TRIGGER, META_REPOSITORIES). When present, ALL conditions
must hold in addition to source/sink/path. Reuses the same typed
predicate language as node-level metadata (equals, not_equals,
contains, in, plus not: negation).
standalone: Option<NodeMatcher>Standalone node predicate. When present, the matcher iterates every
node in the graph and emits one finding per matching node — the
source/sink/path fields are ignored, but graph_metadata: still
applies as a graph-wide gate. This is the node-shape-only mode used
for invariants like “any floating Image” where there is no
propagation chain to walk.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MatchSpec
impl<'de> Deserialize<'de> for MatchSpec
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MatchSpec
impl RefUnwindSafe for MatchSpec
impl Send for MatchSpec
impl Sync for MatchSpec
impl Unpin for MatchSpec
impl UnsafeUnpin for MatchSpec
impl UnwindSafe for MatchSpec
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