pub struct StructuredEventBuilder { /* private fields */ }
Expand description
Builder for structured events
Implementations§
Source§impl StructuredEventBuilder
impl StructuredEventBuilder
Sourcepub fn field_bool(self, key: &str, value: bool) -> Self
pub fn field_bool(self, key: &str, value: bool) -> Self
Add a boolean field
Sourcepub fn connection_id(self, conn_id: &ConnectionId) -> Self
pub fn connection_id(self, conn_id: &ConnectionId) -> Self
Set connection ID
Sourcepub fn build(self) -> StructuredLogEvent
pub fn build(self) -> StructuredLogEvent
Build the event
Auto Trait Implementations§
impl Freeze for StructuredEventBuilder
impl RefUnwindSafe for StructuredEventBuilder
impl Send for StructuredEventBuilder
impl Sync for StructuredEventBuilder
impl Unpin for StructuredEventBuilder
impl UnwindSafe for StructuredEventBuilder
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
Mutably borrows from an owned value. Read more