Crate struct_metadata

Source
Expand description

Macros for attaching metadata to structs.

When a struct is used to define an interface with external systems there is often additonal information about the external system that is required. Rather than having that information stored separately this library intends to maintain a single source of truth.

Structs§

Descriptor
Information about a type along with its metadata and doc-strings.
Entry
Struct describing a struct field
Variant
Struct describing an enum variant

Enums§

Kind
Enum reflecting all supported types

Traits§

Described
A self description of the type being targeted including doc-strings and metadata annotations.
MetadataKind
Trait used to describe metadata field propagation

Derive Macros§

Described
Derive macro for the Described trait
MetadataKind
Derive macro for the MetadataKind trait