Contents

AppEntityTraits

The roles an app entity takes on, passed to @AppEntity.

Declaration

struct AppEntityTraits

Overview

Pass a single trait, such as .generable, or a list, such as [.generable]. The macro reads the traits as written, so they have to be listed directly rather than computed.

A set holds each trait at most once. Traits that take a value are compared by trait alone, so two values of the same trait are the same member.

Topics

Type Properties

See Also

Entity support