TypedLogLine

Struct TypedLogLine 

Source
pub struct TypedLogLine {
Show 34 fields pub date: Date, pub time: Time, pub datetime: OffsetDateTime, pub x_edge_location: String, pub sc_bytes: u64, pub c_ip: IpAddr, pub cs_method: String, pub cs_host: String, pub cs_uri_stem: String, pub sc_status: u16, pub cs_referer: Option<String>, pub cs_user_agent: String, pub cs_uri_query: Option<String>, pub cs_cookie: Option<String>, pub x_edge_result_type: EdgeResultType, pub x_edge_request_id: String, pub x_host_header: String, pub cs_protocol: CsProtocol, pub cs_bytes: u64, pub time_taken: Duration, pub x_forwarded_for: Option<ForwardedForAddrs>, pub ssl_protocol: Option<SslProtocol>, pub ssl_cipher: Option<String>, pub x_edge_response_result_type: EdgeResultType, pub cs_protocol_version: CsProtocolVersion, pub fle_status: Option<String>, pub fle_encrypted_fields: Option<u64>, pub c_port: u16, pub time_to_first_byte: Duration, pub x_edge_detailed_result_type: DetailedEdgeResultType, pub sc_content_type: String, pub sc_content_len: u64, pub sc_range_start: Option<i64>, pub sc_range_end: Option<i64>,
}
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Available on crate feature time only.
Expand description

A simple log line representation owning its field data

Only primitive types from Rust’s core/std library are used for the fields. Therefore types like Date and Time are not present.

Fields§

§date: Date
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§time: Time
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§datetime: OffsetDateTime
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§x_edge_location: String
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§sc_bytes: u64
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§c_ip: IpAddr
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_method: String
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_host: String
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_uri_stem: String
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§sc_status: u16
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_referer: Option<String>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_user_agent: String
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_uri_query: Option<String>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_cookie: Option<String>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§x_edge_result_type: EdgeResultType
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§x_edge_request_id: String
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§x_host_header: String
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_protocol: CsProtocol
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_bytes: u64
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§time_taken: Duration
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§x_forwarded_for: Option<ForwardedForAddrs>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§ssl_protocol: Option<SslProtocol>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§ssl_cipher: Option<String>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§x_edge_response_result_type: EdgeResultType
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_protocol_version: CsProtocolVersion
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§fle_status: Option<String>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§fle_encrypted_fields: Option<u64>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§c_port: u16
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§time_to_first_byte: Duration
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§x_edge_detailed_result_type: DetailedEdgeResultType
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§sc_content_type: String
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§sc_content_len: u64
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§sc_range_start: Option<i64>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§sc_range_end: Option<i64>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)

Trait Implementations§

Source§

impl Debug for LogLine

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for LogLine

Source§

fn eq(&self, other: &LogLine) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> TryFrom<&'a str> for LogLine

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(line: &'a str) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<LogLine<'_>> for LogLine

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(raw: CheckedRawLogLine<'_>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl StructuralPartialEq for LogLine

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,