use super::{EventKind, LogEvent};
use crate::device::{DevicePublicKey, TrustedDevice};
#[derive(Default, Debug, Clone, Eq, PartialEq)]
pub enum DeviceEvent {
#[default]
#[doc(hidden)]
Noop,
Trust(TrustedDevice),
Revoke(DevicePublicKey),
}
impl LogEvent for DeviceEvent {
fn event_kind(&self) -> EventKind {
match self {
Self::Noop => EventKind::Noop,
Self::Trust(_) => EventKind::TrustDevice,
Self::Revoke(_) => EventKind::RevokeDevice,
}
}
}