pub struct SecurityIncident {Show 18 fields
pub id: Uuid,
pub organization_id: Option<Uuid>,
pub severity: String,
pub incident_type: String,
pub title: String,
pub description: String,
pub data_categories_affected: Vec<String>,
pub affected_subjects_count: Option<i32>,
pub discovery_at: DateTime<Utc>,
pub notification_at: Option<DateTime<Utc>>,
pub apd_reference_number: Option<String>,
pub status: String,
pub reported_by: Uuid,
pub investigation_notes: Option<String>,
pub root_cause: Option<String>,
pub remediation_steps: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Incident de sécurité (GDPR Art. 33 — notification APD dans les 72h)
Fields§
§id: Uuid§organization_id: Option<Uuid>§severity: String§incident_type: String§title: String§description: String§data_categories_affected: Vec<String>§affected_subjects_count: Option<i32>§discovery_at: DateTime<Utc>§notification_at: Option<DateTime<Utc>>§apd_reference_number: Option<String>§status: String§reported_by: Uuid§investigation_notes: Option<String>§root_cause: Option<String>§remediation_steps: Option<String>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Implementations§
Source§impl SecurityIncident
impl SecurityIncident
pub fn new( organization_id: Option<Uuid>, reported_by: Uuid, severity: String, incident_type: String, title: String, description: String, data_categories_affected: Vec<String>, affected_subjects_count: Option<i32>, ) -> Result<Self, String>
Sourcepub fn hours_since_discovery(&self) -> f64
pub fn hours_since_discovery(&self) -> f64
Heures depuis la découverte (délai APD Art. 33 GDPR = 72h)
Sourcepub fn is_overdue_for_apd(&self) -> bool
pub fn is_overdue_for_apd(&self) -> bool
Vrai si l’incident dépasse 72h sans notification APD
Trait Implementations§
Source§impl Clone for SecurityIncident
impl Clone for SecurityIncident
Source§fn clone(&self) -> SecurityIncident
fn clone(&self) -> SecurityIncident
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 SecurityIncident
impl Debug for SecurityIncident
Source§impl<'de> Deserialize<'de> for SecurityIncident
impl<'de> Deserialize<'de> for SecurityIncident
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 SecurityIncident
impl RefUnwindSafe for SecurityIncident
impl Send for SecurityIncident
impl Sync for SecurityIncident
impl Unpin for SecurityIncident
impl UnwindSafe for SecurityIncident
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Fake for T
impl<T> Fake for T
§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 moreCreates a shared type from an unshared type.