pub struct ApiError {
pub request_id: Option<String>,
pub status_code: StatusCode,
pub case: Option<String>,
pub message: String,
pub docs_url: Option<String>,
pub payload: Option<Box<HashMap<String, Value>>>,
}Available on crate feature
historical only.Expand description
An error from the Databento API.
Fields§
§request_id: Option<String>The request ID.
status_code: StatusCodeThe HTTP status code of the response.
case: Option<String>A machine-readable identifier for the error case, when the server returns a
structured error envelope. None for unstructured errors.
message: StringThe message from the Databento API.
docs_url: Option<String>The link to documentation related to the error.
payload: Option<Box<HashMap<String, Value>>>Additional context for the error, when the server provides one. Common keys
include dataset, start, end, available_start, and available_end.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApiError
impl RefUnwindSafe for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl UnsafeUnpin for ApiError
impl UnwindSafe for ApiError
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