pub struct ErrorContext {
pub operation: Operation,
pub phase: ErrorPhase,
pub row: Option<usize>,
}Expand description
Safe operation context, including the location of a failed batch result row.
use providers_kit::error::{ErrorContext, ErrorPhase, Operation};
let context = ErrorContext {
operation: Operation::BatchResults, phase: ErrorPhase::Normalize, row: Some(0),
};
assert_eq!(context.row, Some(0));Fields§
§operation: OperationThe enclosing public operation.
phase: ErrorPhaseThe stage at which this error was detected.
row: Option<usize>Zero-based logical batch result row, excluding blank JSONL lines.
Trait Implementations§
Source§impl Clone for ErrorContext
impl Clone for ErrorContext
impl Copy for ErrorContext
Source§impl Debug for ErrorContext
impl Debug for ErrorContext
impl Eq for ErrorContext
Source§impl PartialEq for ErrorContext
impl PartialEq for ErrorContext
impl StructuralPartialEq for ErrorContext
Auto Trait Implementations§
impl Freeze for ErrorContext
impl RefUnwindSafe for ErrorContext
impl Send for ErrorContext
impl Sync for ErrorContext
impl Unpin for ErrorContext
impl UnsafeUnpin for ErrorContext
impl UnwindSafe for ErrorContext
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.