pub enum ViewContextViolation {
UndeclaredField {
descriptor: ErrorCode,
actual: FieldSchema,
},
SchemaMismatch {
descriptor: ErrorCode,
expected: FieldSchema,
actual: FieldSchema,
},
}Expand description
A descriptor/context contract violation discovered while creating a safe view.
Violations carry only catalog schema metadata. They never include a runtime context value, source error, or backtrace.
Variants§
UndeclaredField
A retained context field is not declared by the selected descriptor.
Fields
§
actual: FieldSchemaThe schema retained by the context.
SchemaMismatch
A retained context field has the same name as a descriptor field but a different schema.
Fields
§
expected: FieldSchemaThe schema required by the descriptor.
§
actual: FieldSchemaThe schema retained by the context.
Trait Implementations§
Source§impl Clone for ViewContextViolation
impl Clone for ViewContextViolation
impl Copy for ViewContextViolation
Source§impl Debug for ViewContextViolation
impl Debug for ViewContextViolation
Source§impl Display for ViewContextViolation
impl Display for ViewContextViolation
impl Eq for ViewContextViolation
Source§impl PartialEq for ViewContextViolation
impl PartialEq for ViewContextViolation
impl StructuralPartialEq for ViewContextViolation
Auto Trait Implementations§
impl Freeze for ViewContextViolation
impl RefUnwindSafe for ViewContextViolation
impl Send for ViewContextViolation
impl Sync for ViewContextViolation
impl Unpin for ViewContextViolation
impl UnsafeUnpin for ViewContextViolation
impl UnwindSafe for ViewContextViolation
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