pub struct ErrorInfoBuilder { /* private fields */ }
Expand description
Builder for creating ErrorInfo instances with a fluent API
Implementations§
Source§impl ErrorInfoBuilder
impl ErrorInfoBuilder
Sourcepub fn new(code: impl Into<String>, message: impl Into<String>) -> Self
pub fn new(code: impl Into<String>, message: impl Into<String>) -> Self
Create a new ErrorInfoBuilder with required fields
Sourcepub fn workflow_id(self, id: impl Into<String>) -> Self
pub fn workflow_id(self, id: impl Into<String>) -> Self
Set the workflow ID
Sourcepub fn timestamp(self, timestamp: impl Into<String>) -> Self
pub fn timestamp(self, timestamp: impl Into<String>) -> Self
Set custom timestamp (defaults to now if not set)
Sourcepub fn retry_attempted(self, attempted: bool) -> Self
pub fn retry_attempted(self, attempted: bool) -> Self
Mark as retry attempted
Sourcepub fn retry_count(self, count: u32) -> Self
pub fn retry_count(self, count: u32) -> Self
Set retry count
Auto Trait Implementations§
impl Freeze for ErrorInfoBuilder
impl RefUnwindSafe for ErrorInfoBuilder
impl Send for ErrorInfoBuilder
impl Sync for ErrorInfoBuilder
impl Unpin for ErrorInfoBuilder
impl UnwindSafe for ErrorInfoBuilder
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