krz/hutch
an ios client for sourcehut
clone: git clone https://gitbay.org/krz/hutch.git
v3.6.0: Hutch/Models/User.swift · raw
1import Foundation
2
3/// A Sourcehut user from meta.sr.ht.
4struct User: Decodable, Sendable, Hashable {
5 let id: Int
6 let created: String?
7 let updated: String?
8 let username: String
9 let canonicalName: String
10 let email: String
11 let url: String?
12 let location: String?
13 let bio: String?
14 let avatar: String?
15 let pronouns: String?
16 let userType: String?
17 let receivesPaidServices: Bool?
18 let suspensionNotice: String?
19}