pub struct BusinessError { /* private fields */ }Expand description
A decoded non-zero business result from the response envelope.
Implementations§
Source§impl BusinessError
impl BusinessError
Sourcepub fn request_id(&self) -> &str
pub fn request_id(&self) -> &str
Upstream request trace identifier.
Sourcepub const fn kind(&self) -> BusinessErrorKind
pub const fn kind(&self) -> BusinessErrorKind
Recovery-oriented classification of Self::code.
Trait Implementations§
Source§impl Clone for BusinessError
impl Clone for BusinessError
Source§fn clone(&self) -> BusinessError
fn clone(&self) -> BusinessError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BusinessError
impl Debug for BusinessError
Source§impl Display for BusinessError
impl Display for BusinessError
impl Eq for BusinessError
Source§impl Error for BusinessError
impl Error for BusinessError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<BusinessError> for Error
impl From<BusinessError> for Error
Source§fn from(source: BusinessError) -> Self
fn from(source: BusinessError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BusinessError
impl PartialEq for BusinessError
impl StructuralPartialEq for BusinessError
Auto Trait Implementations§
impl Freeze for BusinessError
impl RefUnwindSafe for BusinessError
impl Send for BusinessError
impl Sync for BusinessError
impl Unpin for BusinessError
impl UnsafeUnpin for BusinessError
impl UnwindSafe for BusinessError
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