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.

Members 9

  1. varstatic var generationSchema: FoundationModels.GenerationSchema { get }
  2. casecase countResult(_CoreSpotlight_FoundationModels.Native.CountResult)
  3. casecase groupSummary(_CoreSpotlight_FoundationModels.Native.GroupSummaryResult)
  4. casecase item(_CoreSpotlight_FoundationModels.Native.ItemResult)
  5. casecase statisticResult(_CoreSpotlight_FoundationModels.Native.StatisticResult)
  6. casecase textResult(_CoreSpotlight_FoundationModels.Native.TextResult)
  7. initinit(FoundationModels.GeneratedContent) throws -> _CoreSpotlight_FoundationModels.Native.SearchResultItem
  8. typealiastypealias PartiallyGenerated = PartiallyGenerated
  9. varvar generatedContent: FoundationModels.GeneratedContent { get }
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
    }
}