[][src]Struct serde_cef::CefRecord

pub struct CefRecord<T: ?Sized> {
    pub headers: Option<String>,
    pub version: u8,
    pub device_vendor: String,
    pub device_product: String,
    pub device_version: String,
    pub signature_id: CefSignatureId,
    pub signature: String,
    pub severity: CefSeverity,
    pub extensions: T,
}

Struct which represent a CEF record according to the specification.

Fields

headers: Option<String>

Optional Syslog headers

version: u8

An integer which identifies the version of the CEF format. The current CEF version is 0.

device_vendor: String

Identify the device vendor.

device_product: String

Identify the device name.

device_version: String

Identify the device version.

signature_id: CefSignatureId

Signature ID also known as Device Event Class ID identifies the type of event reported.

signature: String

Representing a human-readable and understandable description of the event.

severity: CefSeverity

Reflects the importance of the event.

The valid string values are Unknown, Low, Medium, High, and Very-High. The valid integer values are 0-3=Low, 4-6=Medium,7-8=High, and 9-10=Very-High.

extensions: T

Contains a collection of key-value pairs. The keys are part of a predefined set.

Methods

impl<T: ?Sized> CefRecord<T>[src]

Trait Implementations

impl<T: Clone + ?Sized> Clone for CefRecord<T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T: Debug + ?Sized> Debug for CefRecord<T>[src]

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

impl<'de, T: ?Sized> Deserialize<'de> for CefRecord<T> where
    T: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<T: ?Sized> Send for CefRecord<T> where
    T: Send

impl<T: ?Sized> Unpin for CefRecord<T> where
    T: Unpin

impl<T: ?Sized> Sync for CefRecord<T> where
    T: Sync

impl<T: ?Sized> UnwindSafe for CefRecord<T> where
    T: UnwindSafe

impl<T: ?Sized> RefUnwindSafe for CefRecord<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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

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