[−][src]Struct serde_cef::CefRecord
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]
pub fn extract_ts_from_headers(headers: &str) -> CefResult<f64>
[src]
pub fn extract_hostname_from_headers(headers: &str) -> CefResult<String>
[src]
Trait Implementations
impl<T: Clone + ?Sized> Clone for CefRecord<T>
[src]
fn clone(&self) -> 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]
T: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, T: ?Sized> Deserialize<'de> for CefRecord<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<T: ?Sized> Send for CefRecord<T> where
T: Send,
T: Send,
impl<T: ?Sized> Unpin for CefRecord<T> where
T: Unpin,
T: Unpin,
impl<T: ?Sized> Sync for CefRecord<T> where
T: Sync,
T: Sync,
impl<T: ?Sized> UnwindSafe for CefRecord<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T: ?Sized> RefUnwindSafe for CefRecord<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,