---
title: Schema.Attribute.Option
framework: swiftdata
role: symbol
role_heading: Structure
path: swiftdata/schema/attribute/option
---

# Schema.Attribute.Option

## Declaration

```swift
struct Option
```

## Topics

### Accessing property options

- [allowsCloudEncryption](swiftdata/schema/attribute/option/allowscloudencryption.md)
- [externalStorage](swiftdata/schema/attribute/option/externalstorage.md)
- [preserveValueOnDeletion](swiftdata/schema/attribute/option/preservevalueondeletion.md)
- [spotlight](swiftdata/schema/attribute/option/spotlight.md)
- [unique](swiftdata/schema/attribute/option/unique.md)
- [transformable(by:)](swiftdata/schema/attribute/option/transformable(by:)-9d4xh.md)
- [transformable(by:)](swiftdata/schema/attribute/option/transformable(by:)-lunz.md)
- [ephemeral](swiftdata/schema/attribute/option/ephemeral.md)
- [codable](swiftdata/schema/attribute/option/codable.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
