pub struct PredicateSummary {
pub kind: String,
pub fields: Vec<String>,
pub min: Option<f64>,
pub tolerance: Option<f64>,
pub km: Option<f64>,
pub parts: Option<Vec<PredicateSummary>>,
pub approximate: bool,
}Expand description
Wire summary of a Predicate. JSON only — Explanation is never
bincode-persisted (WAL/snapshots store RuleDef bytes, not this type).
Fields§
§kind: String§fields: Vec<String>§min: Option<f64>§tolerance: Option<f64>§km: Option<f64>§parts: Option<Vec<PredicateSummary>>§approximate: boolTrue when the owning rule has approximate=true (IVF-Flat candidate path).
Always false for predicates reported without rule context (sub-predicates in parts).
Trait Implementations§
Source§impl Clone for PredicateSummary
impl Clone for PredicateSummary
Source§fn clone(&self) -> PredicateSummary
fn clone(&self) -> PredicateSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PredicateSummary
impl Debug for PredicateSummary
Source§impl<'de> Deserialize<'de> for PredicateSummary
impl<'de> Deserialize<'de> for PredicateSummary
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
Source§impl From<&Predicate> for PredicateSummary
impl From<&Predicate> for PredicateSummary
Source§impl PartialEq for PredicateSummary
impl PartialEq for PredicateSummary
Source§impl Serialize for PredicateSummary
impl Serialize for PredicateSummary
impl StructuralPartialEq for PredicateSummary
Auto Trait Implementations§
impl Freeze for PredicateSummary
impl RefUnwindSafe for PredicateSummary
impl Send for PredicateSummary
impl Sync for PredicateSummary
impl Unpin for PredicateSummary
impl UnsafeUnpin for PredicateSummary
impl UnwindSafe for PredicateSummary
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