pub struct ErrorReport {
pub reason: String,
pub detail: Option<String>,
pub position: Option<String>,
pub want: Option<String>,
pub path: Option<String>,
pub context: Vec<OperationContext>,
pub root_metadata: ErrorMetadata,
pub source_frames: Vec<SourceFrame>,
}Fields§
§reason: String§detail: Option<String>§position: Option<String>§want: Option<String>§path: Option<String>§context: Vec<OperationContext>§root_metadata: ErrorMetadata§source_frames: Vec<SourceFrame>Implementations§
Source§impl ErrorReport
impl ErrorReport
pub fn render(&self, mode: RenderMode) -> String
pub fn redacted(&self, policy: &impl RedactPolicy) -> Self
pub fn render_redacted( &self, mode: RenderMode, policy: &impl RedactPolicy, ) -> String
Trait Implementations§
Source§impl Clone for ErrorReport
impl Clone for ErrorReport
Source§fn clone(&self) -> ErrorReport
fn clone(&self) -> ErrorReport
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 ErrorReport
impl Debug for ErrorReport
Source§impl PartialEq for ErrorReport
impl PartialEq for ErrorReport
impl StructuralPartialEq for ErrorReport
Auto Trait Implementations§
impl Freeze for ErrorReport
impl RefUnwindSafe for ErrorReport
impl Send for ErrorReport
impl Sync for ErrorReport
impl Unpin for ErrorReport
impl UnsafeUnpin for ErrorReport
impl UnwindSafe for ErrorReport
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