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> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.