SwiftstructContacts

struct Contacts.BackupRestoreMigrator

Members 12

  1. fieldlet avatarEntityName: String
  2. fieldlet container: NSPersistentContainer+0x0
  3. fieldlet externalDetailsEntityName: String
  4. fieldlet modelName: String
  5. fieldlet posterEntityName: String
  6. fieldlet recoveryAttemptCountMetadataKey: String
  7. fieldlet recoveryLimit: Int
  8. fieldlet tempURL: Foundation.URL
  9. funcattemptMigration(direction: Contacts.BackupRestoreMigrator.MigrationDirection) throws -> Bool
  10. funcgetRecoveryAttemptCount() throws -> Int
  11. funcsetRecoveryAttemptCount(Int) throws -> ()
  12. initinit(container: NSPersistentContainer, tempURL: Foundation.URL, modelName: String, recoveryLimit: Int) -> Contacts.BackupRestoreMigrator
struct BackupRestoreMigrator {
    enum MigrationDirection {
        case backup
        case restore

        var description: Swift.String {
            get
        }
    }
    // Local type in a function or closure the binary does not name
    struct UnpairedAvatarRelationship {
        let avatarID: __C.NSManagedObjectID
        let externalDetailsID: __C.NSManagedObjectID?
    }
    // Local type in a function or closure the binary does not name
    struct PosterRelationship {
        let posterID: __C.NSManagedObjectID
        let pairedImageID: __C.NSManagedObjectID?
        let externalDetailsID: __C.NSManagedObjectID?
    }
    let container: __C.NSPersistentContainer
    let tempURL: Foundation.URL
    let modelName: Swift.String
    let recoveryLimit: Swift.Int
    let recoveryAttemptCountMetadataKey: Swift.String
    let posterEntityName: Swift.String
    let avatarEntityName: Swift.String
    let externalDetailsEntityName: Swift.String

    init(container: __C.NSPersistentContainer, tempURL: Foundation.URL, modelName: Swift.String, recoveryLimit: Swift.Int)

    func attemptMigration(direction: Contacts.BackupRestoreMigrator.MigrationDirection) throws -> Swift.Bool
    func getRecoveryAttemptCount() throws -> Swift.Int
    func setRecoveryAttemptCount(_: Swift.Int) throws
}