AppEntityTraits
The roles an app entity takes on, passed to @AppEntity.
Declaration
struct AppEntityTraitsOverview
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
GenerableEntityAppEntity(_:)AppEntity(_:schema:)ComputedProperty(title:description:authenticationPolicy:visibility:)ComputedProperty(title:description:authenticationPolicy:visibility:customIndexingKey:)ComputedProperty(title:description:authenticationPolicy:visibility:indexingKey:)DeferredProperty(title:description:authenticationPolicy:visibility:)DeferredProperty(title:description:authenticationPolicy:visibility:indexingKey:)