summaryrefslogtreecommitdiff
path: root/Hutch/Models/Meta.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-08-07 17:41:00 -0500
committerGitHub <[email protected]>2026-08-07 17:41:00 -0500
commitff200d21e93d6683f779fe1f3280ac8d8561d393 (patch)
treef6603518ba62134faa699d864003b90464930ab9 /Hutch/Models/Meta.swift
parent9d85bc7c154843693913bf0cc67c6e9ff0d8f897 (diff)
parent283fbf00fdffd64c924b6cb22c84e803b718f078 (diff)
downloadhutch-ff200d21e93d6683f779fe1f3280ac8d8561d393.tar.gz
hutch-ff200d21e93d6683f779fe1f3280ac8d8561d393.tar.bz2
hutch-ff200d21e93d6683f779fe1f3280ac8d8561d393.zip
Merge pull request #39 from krazywarez/fix-actor-isolationHEADmain
Adopt Swift 6 language mode
Diffstat (limited to 'Hutch/Models/Meta.swift')
-rw-r--r--Hutch/Models/Meta.swift16
1 files changed, 8 insertions, 8 deletions
diff --git a/Hutch/Models/Meta.swift b/Hutch/Models/Meta.swift
index f52fc76..e0a09de 100644
--- a/Hutch/Models/Meta.swift
+++ b/Hutch/Models/Meta.swift
@@ -3,7 +3,7 @@ import Foundation
// MARK: - User Profile (full)
/// Extended user profile from meta.sr.ht with all fields from the `me` query.
-struct UserProfile: Codable, Sendable {
+nonisolated struct UserProfile: Codable, Sendable {
let username: String
let canonicalName: String
let email: String
@@ -20,7 +20,7 @@ struct UserProfile: Codable, Sendable {
// MARK: - SSH Key
-struct SSHKey: Codable, Sendable, Identifiable {
+nonisolated struct SSHKey: Codable, Sendable, Identifiable {
let id: Int
let comment: String?
let created: Date
@@ -34,27 +34,27 @@ struct SSHKey: Codable, Sendable, Identifiable {
}
}
-struct SSHKeyPage: Codable, Sendable {
+nonisolated struct SSHKeyPage: Codable, Sendable {
let results: [SSHKey]
let cursor: String?
}
// MARK: - PGP Key
-struct PGPKey: Codable, Sendable, Identifiable {
+nonisolated struct PGPKey: Codable, Sendable, Identifiable {
let id: Int
let fingerprint: String
let created: Date
}
-struct PGPKeyPage: Codable, Sendable {
+nonisolated struct PGPKeyPage: Codable, Sendable {
let results: [PGPKey]
let cursor: String?
}
// MARK: - Subscription
-struct Subscription: Codable, Sendable {
+nonisolated struct Subscription: Codable, Sendable {
let status: String?
let autorenew: Bool?
let interval: String?
@@ -62,7 +62,7 @@ struct Subscription: Codable, Sendable {
// MARK: - Personal Access Token
-struct PersonalAccessToken: Codable, Sendable, Identifiable {
+nonisolated struct PersonalAccessToken: Codable, Sendable, Identifiable {
let id: Int
let issued: Date
let expires: Date?
@@ -72,7 +72,7 @@ struct PersonalAccessToken: Codable, Sendable, Identifiable {
/// One entry in meta.sr.ht's audit log: a security-relevant action on the
/// account, with the address it came from.
-struct AuditLogEntry: Codable, Sendable, Identifiable {
+nonisolated struct AuditLogEntry: Codable, Sendable, Identifiable {
let id: Int
let created: Date
let ipAddress: String