#[non_exhaustive]pub enum Field {
Null,
Text(Text),
Ip(Ip),
Domain(String),
User(String),
AssetID(String),
U64(u64),
I64(i64),
F64(f64),
Date(Filetime),
Array(Vec<Text>),
Path(PathBuf),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Null
Text(Text)
A basic String field
Ip(Ip)
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.
U64(u64)
unsigned number with 64 bits
I64(i64)
signed number with 64 bits
F64(f64)
decimal number with 64 bits
Date(Filetime)
A date in a decimal number format with 64 bits
Array(Vec<Text>)
Path(PathBuf)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Field
impl<'de> Deserialize<'de> for Field
Source§fn deserialize<D>(deserializer: D) -> Result<Field, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Field, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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