pub struct AuditExport {
pub events: Vec<AuditEvent>,
pub merkle_root: Option<String>,
pub exported_at: DateTime<Utc>,
pub verified: bool,
}Expand description
Audit export for compliance reporting
Fields§
§events: Vec<AuditEvent>§merkle_root: Option<String>§exported_at: DateTime<Utc>§verified: boolImplementations§
Source§impl AuditExport
impl AuditExport
Sourcepub fn to_ocsf(&self) -> Vec<Value>
pub fn to_ocsf(&self) -> Vec<Value>
Export to OCSF v1.7.0 format (Open Cybersecurity Schema Framework) Uses Detection Finding class (class_uid: 2004) for AI agent events See: https://schema.ocsf.io/1.7.0/classes/detection_finding
Sourcepub fn to_splunk_hec(&self, index: &str, source: &str) -> Vec<Value>
pub fn to_splunk_hec(&self, index: &str, source: &str) -> Vec<Value>
Export to Splunk HEC format (HTTP Event Collector) Uses epoch timestamps and proper metadata placement See: https://docs.splunk.com/Documentation/Splunk/latest/Data/FormateventsforHTTPEventCollector
Trait Implementations§
Source§impl Clone for AuditExport
impl Clone for AuditExport
Source§fn clone(&self) -> AuditExport
fn clone(&self) -> AuditExport
Returns a duplicate of the value. Read more
1.0.0 · 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 AuditExport
impl Debug for AuditExport
Source§impl<'de> Deserialize<'de> for AuditExport
impl<'de> Deserialize<'de> for AuditExport
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
Auto Trait Implementations§
impl Freeze for AuditExport
impl RefUnwindSafe for AuditExport
impl Send for AuditExport
impl Sync for AuditExport
impl Unpin for AuditExport
impl UnwindSafe for AuditExport
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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