pub struct MonitoringAlert {
pub alert_id: u64,
pub transaction_id: u64,
pub customer_id: u64,
pub alert_type: u8,
pub severity: u8,
pub status: u8,
pub amount_cents: u64,
pub risk_score: u32,
pub velocity_count: u32,
pub timestamp: u64,
pub country_code: u16,
pub flags: u16,
/* private fields */
}Expand description
128-byte GPU-aligned monitoring alert structure.
Contains all information about a triggered compliance alert.
Fields§
§alert_id: u64Unique alert identifier.
transaction_id: u64Related transaction identifier.
customer_id: u64Customer identifier who triggered the alert.
alert_type: u8Alert type (cast to AlertType).
severity: u8Alert severity (cast to AlertSeverity).
status: u8Alert status (cast to AlertStatus).
amount_cents: u64Transaction amount that triggered alert (cents).
risk_score: u32Computed risk score for this alert (0-100).
velocity_count: u32Velocity count at time of alert.
timestamp: u64Timestamp when alert was raised (Unix epoch ms).
country_code: u16Destination country code (if relevant).
flags: u16Additional flags (bitmask).
Implementations§
Source§impl MonitoringAlert
impl MonitoringAlert
Sourcepub fn new(
alert_id: u64,
transaction_id: u64,
customer_id: u64,
alert_type: AlertType,
severity: AlertSeverity,
amount_cents: u64,
timestamp: u64,
) -> Self
pub fn new( alert_id: u64, transaction_id: u64, customer_id: u64, alert_type: AlertType, severity: AlertSeverity, amount_cents: u64, timestamp: u64, ) -> Self
Create a new monitoring alert.
Sourcepub fn alert_type(&self) -> AlertType
pub fn alert_type(&self) -> AlertType
Get the alert type enum.
Sourcepub fn severity(&self) -> AlertSeverity
pub fn severity(&self) -> AlertSeverity
Get the severity enum.
Sourcepub fn status(&self) -> AlertStatus
pub fn status(&self) -> AlertStatus
Get the status enum.
Sourcepub fn format_amount(&self) -> String
pub fn format_amount(&self) -> String
Format amount as currency string.
Sourcepub fn requires_immediate_action(&self) -> bool
pub fn requires_immediate_action(&self) -> bool
Check if this alert requires immediate attention.
Trait Implementations§
Source§impl Clone for MonitoringAlert
impl Clone for MonitoringAlert
Source§fn clone(&self) -> MonitoringAlert
fn clone(&self) -> MonitoringAlert
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 MonitoringAlert
impl Debug for MonitoringAlert
Source§impl Default for MonitoringAlert
impl Default for MonitoringAlert
impl Copy for MonitoringAlert
impl Pod for MonitoringAlert
Auto Trait Implementations§
impl Freeze for MonitoringAlert
impl RefUnwindSafe for MonitoringAlert
impl Send for MonitoringAlert
impl Sync for MonitoringAlert
impl Unpin for MonitoringAlert
impl UnwindSafe for MonitoringAlert
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
Source§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Turns some type into the initial state of some
Application.