pub struct EventBuilder { /* private fields */ }Expand description
Builder for log event fields.
Implementations§
Source§impl EventBuilder
impl EventBuilder
Sourcepub fn field(&mut self, name: &str, value: impl ToString) -> &mut Self
pub fn field(&mut self, name: &str, value: impl ToString) -> &mut Self
Add a field to the event.
Values are automatically redacted based on field name and content.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventBuilder
impl RefUnwindSafe for EventBuilder
impl Send for EventBuilder
impl Sync for EventBuilder
impl Unpin for EventBuilder
impl UnwindSafe for EventBuilder
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