mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection these were generated from predated the compute migration, so they described /v1/visor — which the API serves at zero paths now. No /v1/visor path survives here.
41 lines
1.2 KiB
Swift
41 lines
1.2 KiB
Swift
//
|
|
// Completion.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Completion: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Detail is the server's short elaboration, typically the type or signature. */
|
|
public var detail: String?
|
|
/** Kind is the LSP CompletionItemKind number (2 method, 3 function, 5 field, 6 variable, …), passed through as the protocol spells it. */
|
|
public var kind: Int64?
|
|
/** Label is the text a client would insert, and what an editor lists. */
|
|
public var label: String?
|
|
|
|
public init(detail: String? = nil, kind: Int64? = nil, label: String? = nil) {
|
|
self.detail = detail
|
|
self.kind = kind
|
|
self.label = label
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case detail
|
|
case kind
|
|
case label
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(detail, forKey: .detail)
|
|
try container.encodeIfPresent(kind, forKey: .kind)
|
|
try container.encodeIfPresent(label, forKey: .label)
|
|
}
|
|
}
|
|
|