pub struct ErrorDetails {
pub type_url: Option<String>,
pub reason: Option<String>,
pub domain: Option<String>,
pub metadata: Option<Map<String, Value>>,
}Expand description
Structured information returned alongside certain errors.
Ported from packages/ai/src/types/error.ts (ErrorDetails).
Fields§
§type_url: Option<String>§reason: Option<String>§domain: Option<String>§metadata: Option<Map<String, Value>>Trait Implementations§
Source§impl Clone for ErrorDetails
impl Clone for ErrorDetails
Source§fn clone(&self) -> ErrorDetails
fn clone(&self) -> ErrorDetails
Returns a duplicate of the value. Read more
1.0.0 · 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 ErrorDetails
impl Debug for ErrorDetails
Source§impl Default for ErrorDetails
impl Default for ErrorDetails
Source§impl PartialEq for ErrorDetails
impl PartialEq for ErrorDetails
impl StructuralPartialEq for ErrorDetails
Auto Trait Implementations§
impl Freeze for ErrorDetails
impl RefUnwindSafe for ErrorDetails
impl Send for ErrorDetails
impl Sync for ErrorDetails
impl Unpin for ErrorDetails
impl UnwindSafe for ErrorDetails
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