pub struct ErrorField {
pub key: Cow<'static, str>,
pub value: Cow<'static, str>,
}Expand description
A key-value metadata field attached to a QqlError for structured context.
Use QqlError::with_field or the convenience builders
(QqlError::with_collection, QqlError::with_status, etc.) to attach
machine-readable context that clients can inspect without parsing the
human-readable message string.
Fields§
§key: Cow<'static, str>Field name, e.g. collection or status_code.
value: Cow<'static, str>Field value as a string.
Implementations§
Trait Implementations§
Source§impl Clone for ErrorField
impl Clone for ErrorField
Source§fn clone(&self) -> ErrorField
fn clone(&self) -> ErrorField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ErrorField
impl Debug for ErrorField
impl Eq for ErrorField
Source§impl PartialEq for ErrorField
impl PartialEq for ErrorField
impl StructuralPartialEq for ErrorField
Auto Trait Implementations§
impl Freeze for ErrorField
impl RefUnwindSafe for ErrorField
impl Send for ErrorField
impl Sync for ErrorField
impl Unpin for ErrorField
impl UnsafeUnpin for ErrorField
impl UnwindSafe for ErrorField
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