Struct syslog_rfc5424::message::SyslogMessage [] [src]

pub struct SyslogMessage {
    pub severity: SyslogSeverity,
    pub facility: SyslogFacility,
    pub version: i32,
    pub timestamp: Option<time_t>,
    pub hostname: Option<String>,
    pub appname: Option<String>,
    pub procid: Option<ProcIdType>,
    pub msgid: Option<msgid_t>,
    pub sd: StructuredData,
    pub msg: String,
}

Fields

severity: SyslogSeverity facility: SyslogFacility version: i32 timestamp: Option<time_t> hostname: Option<String> appname: Option<String> procid: Option<ProcIdType> msgid: Option<msgid_t> sd: StructuredData msg: String

Trait Implementations

impl Encodable for SyslogMessage
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Debug for SyslogMessage
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for SyslogMessage
[src]

fn clone(&self) -> SyslogMessage

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more