<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macCatalyst: -",
    "macOS: 27.3.0 -",
    "visionOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/AppEntityTraits",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents0A12EntityTraitsV"
  },
  "title" : "AppEntityTraits"
}
-->

# AppEntityTraits

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

```
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

[`static let generable: AppEntityTraits`](/documentation/AppIntents/AppEntityTraits/generable)

The model can generate values of the entity on its own.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)