#[non_exhaustive]pub struct ExprPathStep {
pub node_id: u32,
pub operator: Option<String>,
pub arg_index: Option<u32>,
pub json_pointer: String,
}Expand description
One step in a compiled expression’s structural evaluation path, from root to failing node.
Mirrors datalogic_rs::PathStep with PartialEq + Eq so a host can
persist, compare, or inspect where inside a rule an evaluation failed
without re-parsing a display string.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.node_id: u32Compile-time node id, matching datalogic_rs::Error::node_ids.
operator: Option<String>Operator name at this node, when one applies.
arg_index: Option<u32>Zero-based position within the parent node’s argument list.
json_pointer: StringJSONLogic-flavoured pointer from the root to this node (e.g. "/if/0/>/0").
Trait Implementations§
Source§impl Clone for ExprPathStep
impl Clone for ExprPathStep
Source§impl Debug for ExprPathStep
impl Debug for ExprPathStep
Source§impl<'de> Deserialize<'de> for ExprPathStep
impl<'de> Deserialize<'de> for ExprPathStep
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
impl Eq for ExprPathStep
Source§impl From<&PathStep> for ExprPathStep
impl From<&PathStep> for ExprPathStep
Source§impl From<PathStep> for ExprPathStep
impl From<PathStep> for ExprPathStep
Source§impl PartialEq for ExprPathStep
impl PartialEq for ExprPathStep
Source§impl Serialize for ExprPathStep
impl Serialize for ExprPathStep
impl StructuralPartialEq for ExprPathStep
Auto Trait Implementations§
impl Freeze for ExprPathStep
impl RefUnwindSafe for ExprPathStep
impl Send for ExprPathStep
impl Sync for ExprPathStep
impl Unpin for ExprPathStep
impl UnsafeUnpin for ExprPathStep
impl UnwindSafe for ExprPathStep
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.