pub struct FieldItem {
pub field: Field,
pub name: &'static str,
pub flattened: bool,
}Available on crate feature
reflect only.Expand description
A field item with runtime state for serialization.
This wraps a static Field with additional runtime state that can be modified
during iteration (e.g., for flattened enums where the field name becomes the variant name).
Fields§
§field: FieldThe underlying static field definition
name: &'static strRuntime-determined name (may differ from field.name for flattened enums)
flattened: boolWhether this field was flattened from an enum (variant name used as key)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldItem
impl RefUnwindSafe for FieldItem
impl Send for FieldItem
impl Sync for FieldItem
impl Unpin for FieldItem
impl UnwindSafe for FieldItem
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