pub enum SiemField {
    Text(Cow<'static, str>),
    IP(SiemIp),
    Domain(String),
    User(String),
    AssetID(String),
    U32(u32),
    U64(u64),
    I64(i64),
    F64(f64),
    Date(i64),
}

Variants

Text(Cow<'static, str>)

A basic String field

IP(SiemIp)

IPv4 or IPv6

Domain(String)

User(String)

AssetID(String)

This is a special field. Uniquely identifies an asset like a system, a computer or a mobile phone. Reason: the network is dynamic, the IP address is not fixed certain devices and the hostname of a system can be changed.

This field should be used with a dataset to recover information about an asset during the enchance phase: Getting the IP address, the users logged in the system or another information.

Can be multiple AssetsID associated with the same event because multiple virtual machines can be running in the same asset.

U32(u32)

unsigned number with 32 bits

U64(u64)

unsigned number with 64 bits

I64(i64)

signed number with 64 bits

F64(f64)

decimal number with 64 bits

Date(i64)

A date in a decimal number format with 64 bits

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.