pub struct ComplianceReportRecord {
pub id: Uuid,
pub tenant_id: TenantId,
pub report_type: String,
pub status: String,
pub period_start: DateTime<Utc>,
pub period_end: DateTime<Utc>,
pub created_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
pub content: Option<Value>,
pub error: Option<String>,
}Expand description
A stored compliance report record for persistence.
Contains all data needed to persist and retrieve a compliance report from the metadata repository.
Fields§
§id: UuidUnique report identifier.
tenant_id: TenantIdTenant that requested the report.
report_type: StringType of compliance report (e.g. “soc2”, “gdpr”, “hipaa”).
status: StringCurrent status: “pending”, “completed”, or “failed”.
period_start: DateTime<Utc>Start of the reporting period.
period_end: DateTime<Utc>End of the reporting period.
created_at: DateTime<Utc>When the report was requested.
completed_at: Option<DateTime<Utc>>When the report generation completed (if finished).
content: Option<Value>Report content as JSON (populated when status is “completed”).
error: Option<String>Error message (populated when status is “failed”).
Trait Implementations§
Source§impl Clone for ComplianceReportRecord
impl Clone for ComplianceReportRecord
Source§fn clone(&self) -> ComplianceReportRecord
fn clone(&self) -> ComplianceReportRecord
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 ComposeSchema for ComplianceReportRecord
impl ComposeSchema for ComplianceReportRecord
Source§impl Debug for ComplianceReportRecord
impl Debug for ComplianceReportRecord
Source§impl<'de> Deserialize<'de> for ComplianceReportRecord
impl<'de> Deserialize<'de> for ComplianceReportRecord
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 Serialize for ComplianceReportRecord
impl Serialize for ComplianceReportRecord
Auto Trait Implementations§
impl Freeze for ComplianceReportRecord
impl RefUnwindSafe for ComplianceReportRecord
impl Send for ComplianceReportRecord
impl Sync for ComplianceReportRecord
impl Unpin for ComplianceReportRecord
impl UnsafeUnpin for ComplianceReportRecord
impl UnwindSafe for ComplianceReportRecord
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