pub struct ErrorBuilder { /* private fields */ }Expand description
Builder for error events.
Implementations§
Source§impl ErrorBuilder
impl ErrorBuilder
Sourcepub fn retryable_if(self, should_retry: bool) -> Self
pub fn retryable_if(self, should_retry: bool) -> Self
Set retryable based on a boolean condition.
Sourcepub fn hint_if_some(self, hint: Option<&str>) -> Self
pub fn hint_if_some(self, hint: Option<&str>) -> Self
Set the hint if present.
Sourcepub fn extend<T: Serialize>(self, value: T) -> Self
pub fn extend<T: Serialize>(self, value: T) -> Self
Extend with a serializable value (must serialize to JSON object).
Sourcepub fn build(self) -> Result<Event, BuildError>
pub fn build(self) -> Result<Event, BuildError>
Build the event.
Auto Trait Implementations§
impl Freeze for ErrorBuilder
impl RefUnwindSafe for ErrorBuilder
impl Send for ErrorBuilder
impl Sync for ErrorBuilder
impl Unpin for ErrorBuilder
impl UnsafeUnpin for ErrorBuilder
impl UnwindSafe for ErrorBuilder
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