pub struct WebServerEvent {
Show 18 fields pub source_ip: SiemIp, pub destination_ip: Option<SiemIp>, pub destination_port: u16, pub in_bytes: u32, pub out_bytes: u32, pub http_code: u32, pub duration: f32, pub http_method: HttpMethod, pub user_agent: LogString, pub url_full: LogString, pub url_domain: LogString, pub url_path: LogString, pub url_query: LogString, pub url_extension: LogString, pub protocol: WebProtocol, pub user_name: LogString, pub mime_type: LogString, pub outcome: WebServerOutcome,
}
Expand description

A typical combined Log format has a source_ip, a user_id, a date, the http method, the path requested, the user agent and the size of the resource returned

Fields§

§source_ip: SiemIp§destination_ip: Option<SiemIp>§destination_port: u16§in_bytes: u32§out_bytes: u32§http_code: u32§duration: f32§http_method: HttpMethod§user_agent: LogString§url_full: LogString§url_domain: LogString§url_path: LogString§url_query: LogString§url_extension: LogString§protocol: WebProtocol§user_name: LogString§mime_type: LogString§outcome: WebServerOutcome

Implementations§

source§

impl WebServerEvent

source

pub fn source_ip(&self) -> &SiemIp

source

pub fn destination_ip(&self) -> &Option<SiemIp>

source

pub fn destination_port(&self) -> u16

source

pub fn in_bytes(&self) -> u32

source

pub fn out_bytes(&self) -> u32

source

pub fn http_code(&self) -> u32

source

pub fn duration(&self) -> f32

source

pub fn protocol(&self) -> &WebProtocol

source

pub fn outcome(&self) -> &WebServerOutcome

source

pub fn http_method(&self) -> &HttpMethod

source

pub fn user_name(&self) -> &str

source

pub fn mime_type(&self) -> &str

source

pub fn url_full(&self) -> &str

source

pub fn url_domain(&self) -> &str

source

pub fn url_path(&self) -> &str

source

pub fn url_query(&self) -> &str

source

pub fn url_extension(&self) -> &str

source

pub fn user_agent(&self) -> &str

Trait Implementations§

source§

impl Clone for WebServerEvent

source§

fn clone(&self) -> WebServerEvent

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for WebServerEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for WebServerEvent

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<WebServerEvent> for SiemLog

source§

fn from(val: WebServerEvent) -> Self

Converts to this type from the input type.
source§

impl Serialize for WebServerEvent

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,