SwiftstructAppIntentSchemas
struct AppIntentSchemas.Switch
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.Decodable
- protocolSwift.Encodable
- protocolSwift.Equatable
Members 3
- field
let cases: [AppIntentSchemas.SwitchCase<AppIntentSchemas.Value>]+0x8 - field
let parameters: [AppIntentSchemas.ParameterSchema]+0x0 - init
init<A where A: Decodable, A: Encodable, A: Equatable, A: Sendable>(_: AppIntentSchemas.ParameterSchema, cases: () -> [AppIntentSchemas.SwitchCase<A>]) -> AppIntentSchemas.Switch
Header
struct Switch { enum CodingKeys { case parameters case cases } let parameters: [AppIntentSchemas.ParameterSchema] let cases: [AppIntentSchemas.SwitchCase<AppIntentSchemas.Value>] init<A>(_: AppIntentSchemas.ParameterSchema, cases: () -> [AppIntentSchemas.SwitchCase<A>]) where A: Swift.Decodable, A: Swift.Encodable, A: Swift.Equatable, A: Swift.Sendable }