pub struct ErrorInfoBuilder { /* private fields */ }
Expand description
Builder for ErrorInfo
.
Implementations§
Source§impl ErrorInfoBuilder
impl ErrorInfoBuilder
Sourcepub fn code<VALUE: Into<ErrorCode>>(self, value: VALUE) -> Self
pub fn code<VALUE: Into<ErrorCode>>(self, value: VALUE) -> Self
The code field MUST be a unique identifier, containing only uppercase alphabetic characters and underscores.
Sourcepub fn message<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn message<VALUE: Into<String>>(self, value: VALUE) -> Self
The message field is OPTIONAL, and if present, it SHOULD be a human readable string or MAY be empty.
Trait Implementations§
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