pub struct SodViolation {
pub conflict_type: SodConflictType,
pub actor_id: String,
pub conflicting_action: String,
pub timestamp: DateTime<Utc>,
pub severity: RiskLevel,
}Expand description
Record of a specific SoD violation on a transaction.
Fields§
§conflict_type: SodConflictTypeType of conflict that occurred
actor_id: StringUser ID who caused the violation
conflicting_action: StringDescription of the conflicting action
timestamp: DateTime<Utc>When the violation occurred
severity: RiskLevelSeverity of this specific violation
Implementations§
Source§impl SodViolation
impl SodViolation
Sourcepub fn new(
conflict_type: SodConflictType,
actor_id: impl Into<String>,
conflicting_action: impl Into<String>,
severity: RiskLevel,
) -> Self
pub fn new( conflict_type: SodConflictType, actor_id: impl Into<String>, conflicting_action: impl Into<String>, severity: RiskLevel, ) -> Self
Create a new SoD violation record.
Sourcepub fn with_timestamp(
conflict_type: SodConflictType,
actor_id: impl Into<String>,
conflicting_action: impl Into<String>,
severity: RiskLevel,
timestamp: DateTime<Utc>,
) -> Self
pub fn with_timestamp( conflict_type: SodConflictType, actor_id: impl Into<String>, conflicting_action: impl Into<String>, severity: RiskLevel, timestamp: DateTime<Utc>, ) -> Self
Create a violation with a specific timestamp.
Trait Implementations§
Source§impl Clone for SodViolation
impl Clone for SodViolation
Source§fn clone(&self) -> SodViolation
fn clone(&self) -> SodViolation
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 SodViolation
impl Debug for SodViolation
Source§impl<'de> Deserialize<'de> for SodViolation
impl<'de> Deserialize<'de> for SodViolation
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 SodViolation
impl RefUnwindSafe for SodViolation
impl Send for SodViolation
impl Sync for SodViolation
impl Unpin for SodViolation
impl UnwindSafe for SodViolation
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