SwiftprotocolSwiftData

protocol SwiftData.BackingData

Members 24

  1. associatedtypeassociatedtype Model
  2. funcmethod descriptor for _applyAsBackingData(to: SwiftData.PersistentModel) -> Bool
  3. func_applyAsBackingData(to: SwiftData.PersistentModel) -> Bool
  4. func_generateCurrentClassBackingData<A where A1: SwiftData.PersistentModel>() -> any SwiftData.BackingData<Self.Model == A1>
  5. func_superClassBackingData<A where A1: SwiftData.PersistentModel>(of: SwiftData.PersistentModel.Type) -> any SwiftData.BackingData<Self.Model == A1>
  6. funcmethod descriptor for _updateFromSlottedSnapshot(SwiftData._DataStoreSnapshotValueAccess) -> Bool
  7. func_updateFromSlottedSnapshot(SwiftData._DataStoreSnapshotValueAccess) -> Bool
  8. funcmethod descriptor for _updateFromSnapshot(SwiftData.DataStoreSnapshot) -> Bool
  9. func_updateFromSnapshot(SwiftData.DataStoreSnapshot) -> Bool
  10. funcmethod descriptor for getTransformableValue<A>(forKey: KeyPath<A.Model, A1>) -> A1
  11. funcmethod descriptor for getValue<A where A1: Decodable>(forKey: KeyPath<A.Model, A1>) -> A1
  12. funcmethod descriptor for getValue<A where A1: SwiftData.PersistentModel>(forKey: KeyPath<A.Model, A1>) -> A1
  13. funcmethod descriptor for getValue<A where A1: SwiftData.PersistentModel>(forKey: KeyPath<A.Model, A1?>) -> A1?
  14. funcmethod descriptor for getValue<A, B where A1: SwiftData.RelationshipCollection, B1 == A1.PersistentElement>(forKey: KeyPath<A.Model, A1>) -> A1
  15. funcmethod descriptor for getValue<A, B where A1: Decodable, A1: SwiftData.RelationshipCollection, B1 == A1.RelationshipCollection.PersistentElement>(forKey: KeyPath<A.Model, A1>) -> A1
  16. funcmethod descriptor for setTransformableValue<A>(forKey: KeyPath<A.Model, A1>, to: A1) -> ()
  17. funcmethod descriptor for setValue<A where A1: Encodable>(forKey: KeyPath<A.Model, A1>, to: A1) -> ()
  18. funcmethod descriptor for setValue<A where A1: SwiftData.PersistentModel>(forKey: KeyPath<A.Model, A1>, to: A1) -> ()
  19. funcmethod descriptor for setValue<A where A1: SwiftData.PersistentModel>(forKey: KeyPath<A.Model, A1?>, to: A1?) -> ()
  20. funcmethod descriptor for setValue<A, B where A1: SwiftData.RelationshipCollection, B1 == A1.PersistentElement>(forKey: KeyPath<A.Model, A1>, to: A1) -> ()
  21. funcmethod descriptor for setValue<A, B where A1: Encodable, A1: SwiftData.RelationshipCollection, B1 == A1.RelationshipCollection.PersistentElement>(forKey: KeyPath<A.Model, A1>, to: A1) -> ()
  22. initmethod descriptor for init(for: A.Model.Type) -> A
  23. varvar metadata: Any { get }
  24. varvar persistentModelID: SwiftData.PersistentIdentifier? { get set modify }
protocol BackingData where Self.Model: SwiftData.PersistentModel {
    associatedtype Model

    init(for: Self.Model.Type)

    var metadata: Any {
        get
    }
    var persistentModelID: SwiftData.PersistentIdentifier? {
        get
        set
    }

    func getValue<A1>(forKey: Swift.KeyPath<Self.Model, A1>) -> A1 where A1: Swift.Decodable
    func getValue<A1>(forKey: Swift.KeyPath<Self.Model, A1>) -> A1 where A1: SwiftData.PersistentModel
    func getValue<A1>(forKey: Swift.KeyPath<Self.Model, A1?>) -> A1? where A1: SwiftData.PersistentModel
    func getValue<A1, B1>(forKey: Swift.KeyPath<Self.Model, A1>) -> A1 where A1: SwiftData.RelationshipCollection, B1 == A1.PersistentElement
    func getValue<A1, B1>(forKey: Swift.KeyPath<Self.Model, A1>) -> A1 where A1: Swift.Decodable, A1: SwiftData.RelationshipCollection, B1 == A1.PersistentElement
    func getTransformableValue<A1>(forKey: Swift.KeyPath<Self.Model, A1>) -> A1
    func setValue<A1>(forKey: Swift.KeyPath<Self.Model, A1>, to: A1) where A1: Swift.Encodable
    func setValue<A1>(forKey: Swift.KeyPath<Self.Model, A1>, to: A1) where A1: SwiftData.PersistentModel
    func setValue<A1>(forKey: Swift.KeyPath<Self.Model, A1?>, to: A1?) where A1: SwiftData.PersistentModel
    func setValue<A1, B1>(forKey: Swift.KeyPath<Self.Model, A1>, to: A1) where A1: SwiftData.RelationshipCollection, B1 == A1.PersistentElement
    func setValue<A1, B1>(forKey: Swift.KeyPath<Self.Model, A1>, to: A1) where A1: Swift.Encodable, A1: SwiftData.RelationshipCollection, B1 == A1.PersistentElement
    func setTransformableValue<A1>(forKey: Swift.KeyPath<Self.Model, A1>, to: A1)
    func _updateFromSnapshot(_: any SwiftData.DataStoreSnapshot) -> Swift.Bool
    func _updateFromSlottedSnapshot(_: any SwiftData._DataStoreSnapshotValueAccess) -> Swift.Bool
    func _applyAsBackingData(to: any SwiftData.PersistentModel) -> Swift.Bool
}
extension SwiftData.BackingData {
    func _superClassBackingData<A1>(of: any SwiftData.PersistentModel.Type) -> any SwiftData.BackingData<A1> where A1: SwiftData.PersistentModel
    func _generateCurrentClassBackingData<A1>() -> any SwiftData.BackingData<A1> where A1: SwiftData.PersistentModel
    func _applyAsBackingData(to: any SwiftData.PersistentModel) -> Swift.Bool
    func _updateFromSnapshot(_: any SwiftData.DataStoreSnapshot) -> Swift.Bool
    func _updateFromSlottedSnapshot(_: any SwiftData._DataStoreSnapshotValueAccess) -> Swift.Bool
}