pub struct FlatAnomalyLabel {Show 27 fields
pub anomaly_id: String,
pub anomaly_category: String,
pub anomaly_type: String,
pub document_id: String,
pub document_type: String,
pub company_code: String,
pub anomaly_date: String,
pub detection_timestamp: String,
pub confidence: f64,
pub severity: u8,
pub description: String,
pub is_injected: bool,
pub monetary_impact: Option<String>,
pub related_entities: String,
pub cluster_id: Option<String>,
pub original_document_hash: Option<String>,
pub injection_strategy: Option<String>,
pub structured_strategy_type: Option<String>,
pub structured_strategy_json: Option<String>,
pub causal_reason_type: Option<String>,
pub causal_reason_json: Option<String>,
pub parent_anomaly_id: Option<String>,
pub child_anomaly_ids: String,
pub scenario_id: Option<String>,
pub run_id: Option<String>,
pub generation_seed: Option<u64>,
pub metadata_json: String,
}Expand description
Flattened anomaly label for CSV export. This structure converts nested fields to flat columns for easier CSV handling.
Fields§
§anomaly_id: String§anomaly_category: String§anomaly_type: String§document_id: String§document_type: String§company_code: String§anomaly_date: String§detection_timestamp: String§confidence: f64§severity: u8§description: String§is_injected: bool§monetary_impact: Option<String>§cluster_id: Option<String>§original_document_hash: Option<String>§injection_strategy: Option<String>§structured_strategy_type: Option<String>§structured_strategy_json: Option<String>§causal_reason_type: Option<String>§causal_reason_json: Option<String>§parent_anomaly_id: Option<String>§child_anomaly_ids: String§scenario_id: Option<String>§run_id: Option<String>§generation_seed: Option<u64>§metadata_json: StringTrait Implementations§
Source§impl Debug for FlatAnomalyLabel
impl Debug for FlatAnomalyLabel
Source§impl From<&LabeledAnomaly> for FlatAnomalyLabel
impl From<&LabeledAnomaly> for FlatAnomalyLabel
Source§fn from(label: &LabeledAnomaly) -> Self
fn from(label: &LabeledAnomaly) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FlatAnomalyLabel
impl RefUnwindSafe for FlatAnomalyLabel
impl Send for FlatAnomalyLabel
impl Sync for FlatAnomalyLabel
impl Unpin for FlatAnomalyLabel
impl UnwindSafe for FlatAnomalyLabel
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> 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