pub struct UnnamedEnumVariantCheckContext {
pub enum_name: &'static str,
pub variant_name: &'static str,
pub field_index: usize,
}
Expand description
Context for errors resulting from checking enum variants with unnamed fields.
This context is used by the derive macro to trace which field of an enum variant failed validation.
Fields§
§enum_name: &'static str
The name of the enum with an invalid variant.
variant_name: &'static str
The name of the variant that was invalid.
field_index: usize
The name of the field that was invalid.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnnamedEnumVariantCheckContext
impl RefUnwindSafe for UnnamedEnumVariantCheckContext
impl Send for UnnamedEnumVariantCheckContext
impl Sync for UnnamedEnumVariantCheckContext
impl Unpin for UnnamedEnumVariantCheckContext
impl UnwindSafe for UnnamedEnumVariantCheckContext
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