enum RatingThe user-submitted sentiment rating for the generated AI content (for example, a thumbs up or thumbs down).
-
The feedback rating is unspecified or invalid.
Declaration
Swift
case ratingUnspecified -
Thumbs up, indicating the user was satisfied with the AI feature output.
Declaration
Swift
case thumbsUp -
Thumbs down, indicating the user was dissatisfied with the AI feature output.
Declaration
Swift
case thumbsDown -
Creates a new instance with the specified raw value.
If there is no value of the type that corresponds with the specified raw value, this initializer returns
nil. For example:enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional(PaperSize.Legal)" print(PaperSize(rawValue: "Tabloid")) // Prints "nil"Declaration
Swift
init?(rawValue: UInt64)Parameters
rawValueThe raw value to use for the new instance.