SwiftstructWeatherCore
NotificationSubscription
struct WeatherCore.NotificationSubscription
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.CustomStringConvertible
- protocolSwift.Decodable
- protocolSwift.Encodable
- protocolSwift.Equatable
- protocolSwift.Hashable
Members 9
- field
let identifier: String+0x0 - field
let location: WeatherCore.NotificationSubscription.Location - field
let precipitation: Bool? - field
let severe: Bool? - init
init(location: WeatherCore.Location, locationOverride: WeatherCore.Location?, precipitation: Bool?, severe: Bool?) -> WeatherCore.NotificationSubscription - var
var description: String { get } - var
var kind: WeatherCore.NotificationSubscription.Kind { get } - var
var precipitationEnabled: Bool { get } - var
var severeEnabled: Bool { get }
Header
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 } }