Cotton code
27 lines · 1.0 KB · SwiftRaw
import Foundation/// The native personal identity. Admission facts are the core's words,/// separate from credentials and from the database's own name.public struct YouRead: Decodable, Sendable {    public let databaseId: String    /// `"linked"` once this copy holds the person the object names as you;    /// `"none_yet"` until it does — a fresh copy's ordinary state, answered    /// with no person, never refused (`phone/you.rs`).    public let owner: String?    public let personId: String?    public let name: String?    public let print: String?    public let signIn: [String]    public let devicesCount: Int    enum CodingKeys: String, CodingKey {        case databaseId = "database_id", owner, personId = "person_id", name, print        case signIn = "sign_in", devicesCount = "devices_count"    }    /// `owner`'s word while this copy does not hold you yet.    public static let noOwnerYet = "none_yet"    /// This copy does not hold you yet: Me waits for the next pass.    public var noOwner: Bool { owner == Self.noOwnerYet }}