blob: e5f5eb161c141c22a43c308e2f53a690c50428d3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import Foundation
struct RepositoryACLEntry: Codable, Sendable, Identifiable, Hashable {
let id: Int
let mode: AccessMode
let entity: Entity
}
extension AccessMode {
var shortLabel: String { rawValue }
var displayName: String {
switch self {
case .ro:
"Read Only"
case .rw:
"Read/Write"
}
}
}
|