27 lines
551 B
Swift
27 lines
551 B
Swift
import Foundation
|
|||
|
|
|
||
|
|
/// A `Sendable` snapshot of an account.
|
||
|
|
public struct User: Sendable, Equatable {
|
||
|
|
|
||
|
|
// MARK: Properties
|
||
|
|
|
||
|
|
/// The account's identifier.
|
||
|
|
public let id: UUID
|
||
|
|
/// The account's normalized email address.
|
||
|
|
public let email: String
|
||
|
|
/// The name other people see.
|
||
|
|
public let displayName: String
|
||
|
|
|
||
|
|
// MARK: Initializers
|
||
|
|
|
||
|
|
public init(
|
||
|
|
id: UUID,
|
||
|
|
email: String,
|
||
|
|
displayName: String
|
||
|
|
) {
|
||
|
|
self.id = id
|
||
|
|
self.email = email
|
||
|
|
self.displayName = displayName
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|