Skip to main content

Fields

Derive Macro Fields 

Source
#[derive(Fields)]
Expand description

Derive macro that caches a struct’s field definitions for later merging by combine_fields.

The field definitions (including all attributes, doc comments, and visibility) are stored in an in-memory cache shared with #[combine_fields].

§Panics

Panics if applied to an enum or union (only named structs are supported).