Struct uhppote_rs::Event
source · [−]pub struct Event {
pub timestamp: NaiveDateTime,
pub index: u32,
pub event_type: EventType,
pub granted: bool,
pub door: u8,
pub direction: Direction,
pub card: u32,
pub reason: EventReason,
}
Expand description
Event that occurred on a Device
Fields
timestamp: NaiveDateTime
index: u32
event_type: EventType
granted: bool
door: u8
direction: Direction
card: u32
reason: EventReason
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more