Struct cloudfront_logs::deprecated::ParquetLogLine

source ·
pub struct ParquetLogLine<'a> {
Show 34 fields pub date: NaiveDate, pub time: &'a str, pub datetime: NaiveDateTime, pub x_edge_location: &'a str, pub sc_bytes: u64, pub c_ip: &'a str, pub cs_method: &'a str, pub cs_host: &'a str, pub cs_uri_stem: &'a str, pub sc_status: u16, pub cs_referer: Option<&'a str>, pub cs_user_agent: &'a str, pub cs_uri_query: Option<&'a str>, pub cs_cookie: Option<&'a str>, pub x_edge_result_type: &'a str, pub x_edge_request_id: &'a str, pub x_host_header: &'a str, pub cs_protocol: &'a str, pub cs_bytes: u64, pub time_taken: f64, pub x_forwarded_for: Option<&'a str>, pub ssl_protocol: Option<&'a str>, pub ssl_cipher: Option<&'a str>, pub x_edge_response_result_type: &'a str, pub cs_protocol_version: &'a str, pub fle_status: Option<&'a str>, pub fle_encrypted_fields: Option<u64>, pub c_port: u16, pub time_to_first_byte: f64, pub x_edge_detailed_result_type: &'a str, pub sc_content_type: &'a str, pub sc_content_len: u64, pub sc_range_start: Option<u64>, pub sc_range_end: Option<u64>,
}
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Available on crate feature parquet only.
Expand description

A mostly borrowed version suitable for writing into parquet files

It’s similar to CheckedRawLogLine, but with some fields slightly more typed (time, numbers, options)

Fields§

§date: NaiveDate
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§time: &'a str
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§datetime: NaiveDateTime
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§x_edge_location: &'a str
👎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: &'a str
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_method: &'a str
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_host: &'a str
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_uri_stem: &'a str
👎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<&'a str>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_user_agent: &'a str
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_uri_query: Option<&'a str>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_cookie: Option<&'a str>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§x_edge_result_type: &'a str
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§x_edge_request_id: &'a str
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§x_host_header: &'a str
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_protocol: &'a str
👎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: f64
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§x_forwarded_for: Option<&'a str>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§ssl_protocol: Option<&'a str>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§ssl_cipher: Option<&'a str>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§x_edge_response_result_type: &'a str
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§cs_protocol_version: &'a str
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§fle_status: Option<&'a str>
👎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: f64
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§x_edge_detailed_result_type: &'a str
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§sc_content_type: &'a str
👎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<u64>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
§sc_range_end: Option<u64>
👎Deprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)

Trait Implementations§

source§

impl<'a> Debug for LogLine<'a>

source§

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

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

impl<'a> PartialEq for LogLine<'a>

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a> RecordWriter<LogLine<'a>> for &[LogLine<'a>]

source§

fn write_to_row_group<W: Write + Send>( &self, row_group_writer: &mut SerializedRowGroupWriter<'_, W>, ) -> Result<(), ParquetError>

source§

fn schema(&self) -> Result<TypePtr, ParquetError>

Generated schema
source§

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

§

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<'a> TryFrom<LogLine<'a>> for LogLine<'a>

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl<'a> StructuralPartialEq for LogLine<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for LogLine<'a>

§

impl<'a> RefUnwindSafe for LogLine<'a>

§

impl<'a> Send for LogLine<'a>

§

impl<'a> Sync for LogLine<'a>

§

impl<'a> Unpin for LogLine<'a>

§

impl<'a> UnwindSafe for LogLine<'a>

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>,

§

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>,

§

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,