pub struct CandidateProperties {
pub observed_at: i64,
pub source: String,
pub confidence: f64,
pub extraction_method: String,
pub extractor: String,
pub mechanism: Option<String>,
pub evidence_span: Option<String>,
pub severity: Option<String>,
}Expand description
Properties attached to a candidate fact (provenance, confidence, etc.)
Fields§
§observed_at: i64When the source fact was observed
source: StringSource of the fact (file path, event id, etc.)
confidence: f64Confidence score 0.0-1.0
extraction_method: StringHow the fact was extracted
extractor: StringAgent/tool that produced the candidate
mechanism: Option<String>Optional: mechanism for causal relations
evidence_span: Option<String>Optional: evidence span in source document
severity: Option<String>Optional: severity level
Trait Implementations§
Source§impl Clone for CandidateProperties
impl Clone for CandidateProperties
Source§fn clone(&self) -> CandidateProperties
fn clone(&self) -> CandidateProperties
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 CandidateProperties
impl Debug for CandidateProperties
Source§impl Default for CandidateProperties
impl Default for CandidateProperties
Source§impl<'de> Deserialize<'de> for CandidateProperties
impl<'de> Deserialize<'de> for CandidateProperties
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 CandidateProperties
impl PartialEq for CandidateProperties
Source§fn eq(&self, other: &CandidateProperties) -> bool
fn eq(&self, other: &CandidateProperties) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CandidateProperties
impl Serialize for CandidateProperties
impl StructuralPartialEq for CandidateProperties
Auto Trait Implementations§
impl Freeze for CandidateProperties
impl RefUnwindSafe for CandidateProperties
impl Send for CandidateProperties
impl Sync for CandidateProperties
impl Unpin for CandidateProperties
impl UnsafeUnpin for CandidateProperties
impl UnwindSafe for CandidateProperties
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more