pub struct BatchExporter { /* private fields */ }Expand description
Batch export utility
Implementations§
Source§impl BatchExporter
impl BatchExporter
Sourcepub fn new(format: SIEMFormat) -> Self
pub fn new(format: SIEMFormat) -> Self
Create new batch exporter
Sourcepub fn export(&self, alerts: &[ThreatAlert]) -> String
pub fn export(&self, alerts: &[ThreatAlert]) -> String
Export alerts and return as concatenated string
Sourcepub fn export_to_file(&self, alerts: &[ThreatAlert], path: &str) -> Result<()>
pub fn export_to_file(&self, alerts: &[ThreatAlert], path: &str) -> Result<()>
Export to file
Auto Trait Implementations§
impl Freeze for BatchExporter
impl RefUnwindSafe for BatchExporter
impl Send for BatchExporter
impl Sync for BatchExporter
impl Unpin for BatchExporter
impl UnwindSafe for BatchExporter
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