pub struct ErrorContextField { /* private fields */ }Expand description
One immutable structured error context field.
Implementations§
Source§impl ErrorContextField
impl ErrorContextField
Sourcepub const fn schema(&self) -> FieldSchema
pub const fn schema(&self) -> FieldSchema
Returns the catalog-owned field schema.
Sourcepub const fn visibility(&self) -> ContextVisibility
pub const fn visibility(&self) -> ContextVisibility
Returns the field visibility.
Sourcepub fn value(&self) -> FieldValueRef<'_>
pub fn value(&self) -> FieldValueRef<'_>
Returns the field value.
Public callers can obtain fields only through
ErrorContext::public_fields, which excludes diagnostic and
secret-presence entries. Descriptor-validated views apply their own
descriptor declaration ordering before exposing context fields.
Trait Implementations§
Source§impl Clone for ErrorContextField
impl Clone for ErrorContextField
Source§impl Debug for ErrorContextField
impl Debug for ErrorContextField
impl Eq for ErrorContextField
Source§impl Hash for ErrorContextField
impl Hash for ErrorContextField
Source§impl Ord for ErrorContextField
impl Ord for ErrorContextField
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ErrorContextField
impl PartialEq for ErrorContextField
Source§impl PartialOrd for ErrorContextField
impl PartialOrd for ErrorContextField
impl StructuralPartialEq for ErrorContextField
Auto Trait Implementations§
impl Freeze for ErrorContextField
impl RefUnwindSafe for ErrorContextField
impl Send for ErrorContextField
impl Sync for ErrorContextField
impl Unpin for ErrorContextField
impl UnsafeUnpin for ErrorContextField
impl UnwindSafe for ErrorContextField
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