pub struct Field {
pub name: &'static str,
pub shape: ShapeDesc,
pub offset: usize,
pub flags: FieldFlags,
}
Expand description
Describes a field in a struct or tuple
Fields§
§name: &'static str
key for the struct field (for tuples and tuple-structs, this is the 0-based index)
shape: ShapeDesc
schema of the inner type
offset: usize
offset of the field in the struct (obtained through std::mem::offset_of
)
flags: FieldFlags
flags for the field (e.g. sensitive, etc.)
Trait Implementations§
impl Copy for Field
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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