Struct usiem::events::dns::DnsEvent[][src]

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

impl DnsEvent[src]

pub fn source_ip(&self) -> &SiemIp[src]

pub fn destination_ip(&self) -> &SiemIp[src]

pub fn op_code(&self) -> &DnsEventType[src]

pub fn record_type(&self) -> &DnsRecordType[src]

pub fn record_name(&self) -> &str[src]

pub fn data(&self) -> &Option<Cow<'static, str>>[src]

Trait Implementations

impl Debug for DnsEvent[src]

impl Serialize for DnsEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.