pub struct DnsEvent {
pub source_ip: SiemIp,
pub destination_ip: SiemIp,
pub op_code: DnsEventType,
pub record_type: DnsRecordType,
pub record_name: LogString,
pub data: Option<LogString>,
}
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: LogString
dns.question.name or dns.answer.name
data: Option<LogString>
Implementations§
source§impl 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<LogString>
Trait Implementations§
source§impl<'de> Deserialize<'de> for DnsEvent
impl<'de> Deserialize<'de> for DnsEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more