pub enum ShapeMismatchReason {
RequiredFieldMissing,
FieldBelongsToDifferentVariant,
}Expand description
Reasons a flattened record cannot represent the requested domain variant.
Variants§
RequiredFieldMissing
A field required by the selected discriminator was absent.
FieldBelongsToDifferentVariant
A field from another flattened variant was populated.
Trait Implementations§
Source§impl Clone for ShapeMismatchReason
impl Clone for ShapeMismatchReason
Source§fn clone(&self) -> ShapeMismatchReason
fn clone(&self) -> ShapeMismatchReason
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 ShapeMismatchReason
impl Debug for ShapeMismatchReason
Source§impl PartialEq for ShapeMismatchReason
impl PartialEq for ShapeMismatchReason
impl Copy for ShapeMismatchReason
impl Eq for ShapeMismatchReason
impl StructuralPartialEq for ShapeMismatchReason
Auto Trait Implementations§
impl Freeze for ShapeMismatchReason
impl RefUnwindSafe for ShapeMismatchReason
impl Send for ShapeMismatchReason
impl Sync for ShapeMismatchReason
impl Unpin for ShapeMismatchReason
impl UnsafeUnpin for ShapeMismatchReason
impl UnwindSafe for ShapeMismatchReason
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