Packages

c

sttp.tapir.Validator

Enumeration

case class Enumeration[T](possibleValues: List[T], encode: Option[EncodeToRaw[T]], name: Option[SName]) extends Primitive[T] with Product with Serializable

Linear Supertypes
Serializable, Product, Equals, Primitive[T], Validator[T], AnyRef, scala.Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Enumeration
  2. Serializable
  3. Product
  4. Equals
  5. Primitive
  6. Validator
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Enumeration(possibleValues: List[T], encode: Option[EncodeToRaw[T]], name: Option[SName])

Value Members

  1. final def !=(arg0: scala.Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: scala.Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def and(other: Validator[T]): Validator[T]
    Definition Classes
    Validator
  5. def apply(t: T): List[ValidationError[T]]
    Definition Classes
    PrimitiveValidator
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. def contramap[TT](g: (TT) => T): Validator[TT]
    Definition Classes
    Validator
  9. def doValidate(t: T): ValidationResult
    Definition Classes
    EnumerationPrimitive
  10. def encode(e: (T) => scala.Any): Enumeration[T]

    Specify how values of this type can be encoded to a raw value (typically a String).

    Specify how values of this type can be encoded to a raw value (typically a String). This encoding will be used when generating documentation.

  11. val encode: Option[EncodeToRaw[T]]
  12. def encodeWithCodec[CF <: CodecFormat](implicit c: Codec[String, T, CF]): Enumeration[T]

    Specify that values of this type should be encoded to a raw value using an in-scope codec of the given format.

    Specify that values of this type should be encoded to a raw value using an in-scope codec of the given format. This encoding will be used when generating documentation.

  13. def encodeWithPlainCodec(implicit c: PlainCodec[T]): Enumeration[T]

    Specify that values of this type should be encoded to a raw value using an in-scope plain codec.

    Specify that values of this type should be encoded to a raw value using an in-scope plain codec. This encoding will be used when generating documentation.

  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. val name: Option[SName]
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def or(other: Validator[T]): Validator[T]
    Definition Classes
    Validator
  22. val possibleValues: List[T]
  23. def productElementNames: Iterator[String]
    Definition Classes
    Product
  24. def show: Option[String]
    Definition Classes
    Validator
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Primitive[T]

Inherited from Validator[T]

Inherited from AnyRef

Inherited from scala.Any

Ungrouped