aboutsummaryrefslogtreecommitdiff
path: root/Hutch/Models/User.swift
blob: 4ab7315df81239901222d37e719641b5b6970c7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import Foundation

/// A Sourcehut user from meta.sr.ht.
struct User: Decodable, Sendable, Hashable {
    let id: Int
    let created: String?
    let updated: String?
    let username: String
    let canonicalName: String
    let email: String
    let url: String?
    let location: String?
    let bio: String?
    let avatar: String?
    let pronouns: String?
    let userType: String?
    let receivesPaidServices: Bool?
    let suspensionNotice: String?
}