pub struct BaseFields<'a> {
pub code: u16,
pub message: &'a str,
pub error_type: &'a str,
pub details: &'a str,
pub is_transient: bool,
pub http_status_code: u16,
pub error_subcode: u16,
}Expand description
Base fields extracted from any typed error variant.
Fields§
§code: u16API error code.
message: &'a strHuman-readable error message.
error_type: &'a strMachine-readable error category.
details: &'a strAdditional detail string from the API.
is_transient: boolWhether the API flagged this error as transient.
http_status_code: u16HTTP status code of the response.
error_subcode: u16API error sub-code for finer classification.
Auto Trait Implementations§
impl<'a> Freeze for BaseFields<'a>
impl<'a> RefUnwindSafe for BaseFields<'a>
impl<'a> Send for BaseFields<'a>
impl<'a> Sync for BaseFields<'a>
impl<'a> Unpin for BaseFields<'a>
impl<'a> UnsafeUnpin for BaseFields<'a>
impl<'a> UnwindSafe for BaseFields<'a>
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