Swiftenum_CoreSpotlight_FoundationModels
enum _CoreSpotlight_FoundationModels.Native.SearchResultItem
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolFoundationModels.Generable
- protocolSwift.Decodable
- protocolSwift.Encodable
Members 9
- var
static var generationSchema: FoundationModels.GenerationSchema { get } - case
case countResult(_CoreSpotlight_FoundationModels.Native.CountResult) - case
case groupSummary(_CoreSpotlight_FoundationModels.Native.GroupSummaryResult) - case
case item(_CoreSpotlight_FoundationModels.Native.ItemResult) - case
case statisticResult(_CoreSpotlight_FoundationModels.Native.StatisticResult) - case
case textResult(_CoreSpotlight_FoundationModels.Native.TextResult) - init
init(FoundationModels.GeneratedContent) throws -> _CoreSpotlight_FoundationModels.Native.SearchResultItem - typealias
typealias PartiallyGenerated = PartiallyGenerated - var
var generatedContent: FoundationModels.GeneratedContent { get }
Header
enum _CoreSpotlight_FoundationModels.Native.SearchResultItem { enum PartiallyGenerated { case item(_CoreSpotlight_FoundationModels.Native.ItemResult.PartiallyGenerated?) case groupSummary(_CoreSpotlight_FoundationModels.Native.GroupSummaryResult.PartiallyGenerated?) case countResult(_CoreSpotlight_FoundationModels.Native.CountResult.PartiallyGenerated?) case statisticResult(_CoreSpotlight_FoundationModels.Native.StatisticResult.PartiallyGenerated?) case textResult(_CoreSpotlight_FoundationModels.Native.TextResult.PartiallyGenerated?) init(_: FoundationModels.GeneratedContent) throws } enum CodingKeys { case item case groupSummary case countResult case statisticResult case textResult } enum ItemCodingKeys { case _0 } enum GroupSummaryCodingKeys { case _0 } enum CountResultCodingKeys { case _0 } enum StatisticResultCodingKeys { case _0 } enum TextResultCodingKeys { case _0 } struct DiscriminatedTextResult { let type: Swift.String let value: _CoreSpotlight_FoundationModels.Native.TextResult } struct DiscriminatedStatisticResult { let type: Swift.String let value: _CoreSpotlight_FoundationModels.Native.StatisticResult } struct DiscriminatedCountResult { let type: Swift.String let value: _CoreSpotlight_FoundationModels.Native.CountResult } struct DiscriminatedGroupSummary { let type: Swift.String let value: _CoreSpotlight_FoundationModels.Native.GroupSummaryResult } struct DiscriminatedItem { let type: Swift.String let value: _CoreSpotlight_FoundationModels.Native.ItemResult } case item(_CoreSpotlight_FoundationModels.Native.ItemResult) case groupSummary(_CoreSpotlight_FoundationModels.Native.GroupSummaryResult) case countResult(_CoreSpotlight_FoundationModels.Native.CountResult) case statisticResult(_CoreSpotlight_FoundationModels.Native.StatisticResult) case textResult(_CoreSpotlight_FoundationModels.Native.TextResult) init(_: FoundationModels.GeneratedContent) throws var generatedContent: FoundationModels.GeneratedContent { get } static var generationSchema: FoundationModels.GenerationSchema { get } }