---
title: DataStoreSnapshot
framework: swiftdata
role: symbol
role_heading: Protocol
path: swiftdata/datastoresnapshot
---

# DataStoreSnapshot

## Declaration

```swift
protocol DataStoreSnapshot : Decodable, Encodable, Sendable
```

## Topics

### Initializers

- [init(from:relatedBackingDatas:)](swiftdata/datastoresnapshot/init(from:relatedbackingdatas:).md)

### Instance Properties

- [persistentIdentifier](swiftdata/datastoresnapshot/persistentidentifier.md)

### Instance Methods

- [copy(persistentIdentifier:remappedIdentifiers:)](swiftdata/datastoresnapshot/copy(persistentidentifier:remappedidentifiers:).md)

## Relationships

### Inherits From

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

### Conforming Types

- [DefaultSnapshot](swiftdata/defaultsnapshot.md)

## See Also

### Processing fetch requests

- [fetch(_:)](swiftdata/datastore/fetch(_:).md)
- [DataStoreFetchRequest](swiftdata/datastorefetchrequest.md)
- [DataStoreFetchResult](swiftdata/datastorefetchresult.md)
- [Snapshot](swiftdata/datastore/snapshot.md)
- [DataStoreSnapshotValue](swiftdata/datastoresnapshotvalue.md)
- [fetchCount(_:)](swiftdata/datastore/fetchcount(_:).md)
- [fetchIdentifiers(_:)](swiftdata/datastore/fetchidentifiers(_:).md)
