#[non_exhaustive]pub struct OutputLogEventBuilder { /* private fields */ }
Expand description
A builder for OutputLogEvent
.
Implementations§
source§impl OutputLogEventBuilder
impl OutputLogEventBuilder
sourcepub fn timestamp(self, input: i64) -> Self
pub fn timestamp(self, input: i64) -> Self
The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
sourcepub fn set_timestamp(self, input: Option<i64>) -> Self
pub fn set_timestamp(self, input: Option<i64>) -> Self
The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
sourcepub fn get_timestamp(&self) -> &Option<i64>
pub fn get_timestamp(&self) -> &Option<i64>
The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
The data contained in the log event.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
The data contained in the log event.
sourcepub fn ingestion_time(self, input: i64) -> Self
pub fn ingestion_time(self, input: i64) -> Self
The time the event was ingested, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
sourcepub fn set_ingestion_time(self, input: Option<i64>) -> Self
pub fn set_ingestion_time(self, input: Option<i64>) -> Self
The time the event was ingested, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
sourcepub fn get_ingestion_time(&self) -> &Option<i64>
pub fn get_ingestion_time(&self) -> &Option<i64>
The time the event was ingested, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
sourcepub fn build(self) -> OutputLogEvent
pub fn build(self) -> OutputLogEvent
Consumes the builder and constructs a OutputLogEvent
.
Trait Implementations§
source§impl Clone for OutputLogEventBuilder
impl Clone for OutputLogEventBuilder
source§fn clone(&self) -> OutputLogEventBuilder
fn clone(&self) -> OutputLogEventBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OutputLogEventBuilder
impl Debug for OutputLogEventBuilder
source§impl Default for OutputLogEventBuilder
impl Default for OutputLogEventBuilder
source§fn default() -> OutputLogEventBuilder
fn default() -> OutputLogEventBuilder
source§impl PartialEq for OutputLogEventBuilder
impl PartialEq for OutputLogEventBuilder
source§fn eq(&self, other: &OutputLogEventBuilder) -> bool
fn eq(&self, other: &OutputLogEventBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OutputLogEventBuilder
Auto Trait Implementations§
impl Freeze for OutputLogEventBuilder
impl RefUnwindSafe for OutputLogEventBuilder
impl Send for OutputLogEventBuilder
impl Sync for OutputLogEventBuilder
impl Unpin for OutputLogEventBuilder
impl UnwindSafe for OutputLogEventBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more