Question

public struct Question : Decodable, Equatable

Undocumented

  • Declaration

    Swift

    public static func == (lhs: Question, rhs: Question) -> Bool
  • id

    Identifier

    Declaration

    Swift

    public let id: String
  • Type of question

    Declaration

    Swift

    public let type: Type
  • The caption

    Declaration

    Swift

    public let title: String
  • An optional description

    Declaration

    Swift

    public let description: String?
  • Validation rules

    Declaration

    Swift

    public let validationRules: [ValidationRule]
  • Different questions types, with associated value as the suggestedAnswer

    See more

    Declaration

    Swift

    public enum Question.`Type`
  • Information about a Choice for multiple choice type questions

    See more

    Declaration

    Swift

    public struct Choice : Decodable
  • Declaration

    Swift

    public init(from decoder: Decoder) throws