SwiftstructCoreODI

struct CoreODI.ConsentState.Record

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 4

  1. fieldvar permitted: Bool+0x0
  2. fieldvar updatedAt: Foundation.Date
  3. funcisPermitted(orInCoolDownWindow: Double, isSandbox: Bool) -> CoreODI.ConsentState.Record.PermissionState
  4. initinit(value: Bool, isNew: Bool) -> CoreODI.ConsentState.Record
struct CoreODI.ConsentState.Record {
    enum PermissionState {
        case notPermitted
        case permittedByCooldown
        case permittedByUser

        static func minPermissionLevel(_: CoreODI.ConsentState.Record.PermissionState, _: CoreODI.ConsentState.Record.PermissionState) -> CoreODI.ConsentState.Record.PermissionState
    }
    enum CodingKeys {
        case permitted
        case updatedAt
    }
    var permitted: Swift.Bool
    var updatedAt: Foundation.Date

    init(value: Swift.Bool, isNew: Swift.Bool)

    func isPermitted(orInCoolDownWindow: Swift.Double, isSandbox: Swift.Bool) -> CoreODI.ConsentState.Record.PermissionState
}