pub struct AuditNotificationData {Show 18 fields
pub operation: Datum,
pub source_device: Datum,
pub source_object: Datum,
pub source_timestamp: Datum,
pub source_comment: Datum,
pub source_user_id: Datum,
pub source_user_role: Datum,
pub invoke_id: Datum,
pub target_device: Datum,
pub target_object: Datum,
pub target_property: Datum,
pub target_array_index: Datum,
pub target_priority: Datum,
pub target_timestamp: Datum,
pub target_comment: Datum,
pub target_value: Datum,
pub current_value: Datum,
pub result: Option<AuditResult>,
}Expand description
An Audit Log record’s audit notification, decoded.
Fields§
§operation: DatumThe audited operation, named.
source_device: DatumWho asked for it: a device as an object, or a recipient address.
source_object: DatumThe object that asked, when given.
source_timestamp: DatumWhen the source sent it, a time-stamp element, when given.
source_comment: DatumThe source’s comment, as the device wrote it.
source_user_id: DatumThe source’s user identifier, a number, when given.
source_user_role: DatumThe source’s user role, a number, when given.
invoke_id: DatumThe invoke ID of the audited request, when given.
target_device: DatumThe device the operation targeted.
target_object: DatumThe object it targeted, when given.
target_property: DatumThe property it targeted, named, when given.
target_array_index: DatumThe array index it targeted, when given.
target_priority: DatumThe priority it wrote at, when given.
target_timestamp: DatumWhen the target logged it, a time-stamp element, when given.
target_comment: DatumThe target’s comment, as the device wrote it.
target_value: DatumThe value written, decoded as the target property’s.
current_value: DatumThe value the target held, decoded the same way.
result: Option<AuditResult>The error the operation ended in, when it failed: error_class and
error_code, named.
Implementations§
Source§impl AuditNotificationData
impl AuditNotificationData
Sourcepub fn new(notification: &BACnetAuditNotification) -> Self
pub fn new(notification: &BACnetAuditNotification) -> Self
One audit notification, decoded. The values written and held decode as the target property’s, of the target object’s type.