SwiftstructWeatherCore

struct WeatherCore.NotificationSubscription

Structure

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

Members 9

  1. fieldlet identifier: String+0x0
  2. fieldlet location: WeatherCore.NotificationSubscription.Location
  3. fieldlet precipitation: Bool?
  4. fieldlet severe: Bool?
  5. initinit(location: WeatherCore.Location, locationOverride: WeatherCore.Location?, precipitation: Bool?, severe: Bool?) -> WeatherCore.NotificationSubscription
  6. varvar description: String { get }
  7. varvar kind: WeatherCore.NotificationSubscription.Kind { get }
  8. varvar precipitationEnabled: Bool { get }
  9. varvar severeEnabled: Bool { get }
struct NotificationSubscription {
    struct Kind {
        let rawValue: Swift.Int

        init(precipitation: Swift.Bool?, severe: Swift.Bool?)

        var description: Swift.String {
            get
        }

        func containsAny(_: WeatherCore.NotificationSubscription.Kind) -> Swift.Bool

        static var all: WeatherCore.NotificationSubscription.Kind {
            get
        }
        static var none: WeatherCore.NotificationSubscription.Kind {
            get
        }
        static var precipitation: WeatherCore.NotificationSubscription.Kind {
            get
        }
        static var severe: WeatherCore.NotificationSubscription.Kind {
            get
        }
    }
    struct Location {
        enum CodingKeys {
            case location
            case locationOverride
        }
        let location: WeatherCore.Location
        let locationOverride: WeatherCore.Location

        init(location: WeatherCore.Location, locationOverride: WeatherCore.Location?)
        init?(_: WeatherCore.LocationModel)

        var id: Swift.String {
            get
        }
        var kind: WeatherCore.Location.Identifier.Kind {
            get
        }

        func write(to: inout Foundation.Data) throws

        static var current: WeatherCore.NotificationSubscription.Location {
            get
        }

        static func read(from: inout Foundation.Data) throws -> WeatherCore.NotificationSubscription.Location
    }
    enum CodingKeys {
        case identifier
        case location
        case precipitation
        case severe
    }
    let identifier: Swift.String
    let location: WeatherCore.NotificationSubscription.Location
    let precipitation: Swift.Bool?
    let severe: Swift.Bool?

    init(location: WeatherCore.Location, locationOverride: WeatherCore.Location?, precipitation: Swift.Bool?, severe: Swift.Bool?)

    var description: Swift.String {
        get
    }
    var kind: WeatherCore.NotificationSubscription.Kind {
        get
    }
    var precipitationEnabled: Swift.Bool {
        get
    }
    var severeEnabled: Swift.Bool {
        get
    }
}