pub struct NodeMatcher {
pub node_type: Option<OneOrMany<NodeKind>>,
pub trust_zone: Option<OneOrMany<TrustZone>>,
pub metadata: MetadataMatcher,
pub not: Option<Box<NodeMatcher>>,
}Fields§
§node_type: Option<OneOrMany<NodeKind>>Single value (node_type: secret) or any-of list ([secret, identity]).
trust_zone: Option<OneOrMany<TrustZone>>Single value or any-of list.
metadata: MetadataMatcher§not: Option<Box<NodeMatcher>>Negation: matches when the inner sub-matcher does NOT match.
Nested not is allowed and double-negation collapses naturally.
Trait Implementations§
Source§impl Clone for NodeMatcher
impl Clone for NodeMatcher
Source§fn clone(&self) -> NodeMatcher
fn clone(&self) -> NodeMatcher
Returns a duplicate of the value. Read more
1.0.0 · 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 NodeMatcher
impl Debug for NodeMatcher
Source§impl Default for NodeMatcher
impl Default for NodeMatcher
Source§fn default() -> NodeMatcher
fn default() -> NodeMatcher
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeMatcher
impl<'de> Deserialize<'de> for NodeMatcher
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 NodeMatcher
impl RefUnwindSafe for NodeMatcher
impl Send for NodeMatcher
impl Sync for NodeMatcher
impl Unpin for NodeMatcher
impl UnsafeUnpin for NodeMatcher
impl UnwindSafe for NodeMatcher
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