pub struct DnsEvent {
pub source_ip: SiemIp,
pub destination_ip: SiemIp,
pub op_code: DnsEventType,
pub record_type: DnsRecordType,
pub record_name: Cow<'static, str>,
pub data: Option<Cow<'static, str>>,
}
Fields
source_ip: SiemIp
Client that queried
destination_ip: SiemIp
Server that answered the question
op_code: DnsEventType
Answer or question
record_type: DnsRecordType
dns.question.type or dns.answer.type
record_name: Cow<'static, str>
dns.question.name or dns.answer.name
data: Option<Cow<'static, str>>
Implementations
sourceimpl DnsEvent
impl DnsEvent
pub fn source_ip(&self) -> &SiemIp
pub fn destination_ip(&self) -> &SiemIp
pub fn op_code(&self) -> &DnsEventType
pub fn record_type(&self) -> &DnsRecordType
pub fn record_name(&self) -> &str
pub fn data(&self) -> &Option<Cow<'static, str>>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DnsEvent
impl Send for DnsEvent
impl Sync for DnsEvent
impl Unpin for DnsEvent
impl UnwindSafe for DnsEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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