pub struct ApiError {
pub request_id: Option<String>,
pub status_code: StatusCode,
pub message: String,
pub docs_url: Option<String>,
}
Available on crate feature
historical
only.Expand description
An error from the Databento API.
Fields§
§request_id: Option<String>
The request ID.
status_code: StatusCode
The HTTP status code of the response.
message: String
The message from the Databento API.
docs_url: Option<String>
The link to documentation related to the error.
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 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