pub enum FactSource {
Asserted,
Extracted {
confidence: f32,
},
Inferred {
rule_name: Option<String>,
},
}Expand description
Where a fact came from, for provenance and confidence tracking.
Variants§
Asserted
Hand-authored / loaded from a .eve source file.
Extracted
Produced by a NeuralPatternLayer::extract_facts call.
Inferred
Derived by the forward-chaining inference engine.
Trait Implementations§
Source§impl Clone for FactSource
impl Clone for FactSource
Source§fn clone(&self) -> FactSource
fn clone(&self) -> FactSource
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 FactSource
impl Debug for FactSource
Source§impl<'de> Deserialize<'de> for FactSource
impl<'de> Deserialize<'de> for FactSource
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 PartialEq for FactSource
impl PartialEq for FactSource
Source§impl Serialize for FactSource
impl Serialize for FactSource
impl StructuralPartialEq for FactSource
Auto Trait Implementations§
impl Freeze for FactSource
impl RefUnwindSafe for FactSource
impl Send for FactSource
impl Sync for FactSource
impl Unpin for FactSource
impl UnsafeUnpin for FactSource
impl UnwindSafe for FactSource
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