pub enum Predicate {
LogicalIdEq(String),
KindEq(String),
JsonPathEq {
path: String,
value: ScalarValue,
},
JsonPathCompare {
path: String,
op: ComparisonOp,
value: ScalarValue,
},
SourceRefEq(String),
ContentRefNotNull,
ContentRefEq(String),
}Expand description
A filter predicate applied to candidate nodes.
Variants§
LogicalIdEq(String)
Match nodes with the exact logical ID.
KindEq(String)
Match nodes with the exact kind.
JsonPathEq
Equality check on a JSON property at the given path.
Fields
§
value: ScalarValueValue to compare against.
JsonPathCompare
Ordered comparison on a JSON property at the given path.
SourceRefEq(String)
Match nodes with the exact source_ref.
ContentRefNotNull
Match nodes where content_ref is not NULL (i.e. content proxy nodes).
ContentRefEq(String)
Match nodes with the exact content_ref URI.
Trait Implementations§
impl Eq for Predicate
impl StructuralPartialEq for Predicate
Auto Trait Implementations§
impl Freeze for Predicate
impl RefUnwindSafe for Predicate
impl Send for Predicate
impl Sync for Predicate
impl Unpin for Predicate
impl UnsafeUnpin for Predicate
impl UnwindSafe for Predicate
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