pub enum ResultBody {
Detection(DetectionBody),
Correlation(CorrelationBody),
}Expand description
Kind-specific payload of an EvaluationResult.
Serialized as an untagged enum so the variant fields flatten directly
into the parent JSON object. Downstream consumers disambiguate variants
by the kind-unique fields each variant carries (matched_fields for
detection, correlation_type for correlation).
Invariant: each variant must keep at least one required, kind-unique
field. This is what lets the untagged enum disambiguate on a future
Deserialize and keeps the correlation_type-presence rule reliable
for existing consumers.
Variants§
Detection(DetectionBody)
Detection rule match (stateless, immediate).
Correlation(CorrelationBody)
Correlation rule firing (stateful, time-windowed).
Trait Implementations§
Source§impl Clone for ResultBody
impl Clone for ResultBody
Source§fn clone(&self) -> ResultBody
fn clone(&self) -> ResultBody
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 ResultBody
impl Debug for ResultBody
Auto Trait Implementations§
impl Freeze for ResultBody
impl RefUnwindSafe for ResultBody
impl Send for ResultBody
impl Sync for ResultBody
impl Unpin for ResultBody
impl UnsafeUnpin for ResultBody
impl UnwindSafe for ResultBody
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