Enumerationmacpaw.openai 0.3.8OpenAI
CodingKeys
ChatResult.swift:69enum CodingKeys
enum CodingKeys
s6OpenAI10ChatResultV6ChoiceV7MessageV10AnnotationV10CodingKeysO
What are these?3V6MH
import OpenAI
struct Annotation
struct ChatResult
struct Choice
struct Message
case type
case urlCitation
init(from decoder: any Decoder) throws
struct URLCitation
protocol CodingKey : CustomDebugStringConvertible, CustomStringConvertible, Sendable
A type that can be used as a key for encoding and decoding.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
init?(intValue: Int)
init?(rawValue: String)
init?(stringValue: String)
var debugDescription: String { get }
A textual representation of this key, suitable for debugging.
var description: String { get }
A textual representation of this key.
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)