pub struct AccessEventReport {
pub event: AccessEvent,
pub tag: u64,
pub time: Option<BACnetTimeStamp>,
pub credential: Option<BACnetDeviceObjectReference>,
pub authentication_factor: Option<BACnetAuthenticationFactor>,
}Expand description
One access event at an Access Point: the values of Access_Event, Access_Event_Tag, Access_Event_Time, Access_Event_Credential and Access_Event_Authentication_Factor, which change together for each event (Clause 12.31.27.1).
Fields§
§event: AccessEventThe event, a standard BACnetAccessEvent or a proprietary one.
tag: u64The access transaction the event belongs to. The application moves it on for each new transaction and repeats it for further events of the same one (Clause 12.31.28).
time: Option<BACnetTimeStamp>When the event happened; None stamps it strictly after the time
the point serves, from the Device clock or, without a usable clock,
the next sequence number, as the point’s Out_Of_Service edges are
stamped, so each event moves Access_Event_Time.
credential: Option<BACnetDeviceObjectReference>The Access Credential behind the event; None stores the
no-credential reference (Clause 12.31.30).
authentication_factor: Option<BACnetAuthenticationFactor>The factor presented; None stores the UNDEFINED factor, for an
event no factor belongs to or one the device keeps back (Clause
12.31.31).
Implementations§
Source§impl AccessEventReport
impl AccessEventReport
Sourcepub fn new(event: AccessEvent, tag: u64) -> Self
pub fn new(event: AccessEvent, tag: u64) -> Self
event in transaction tag, stamped now, with no credential and no
factor.