Packages

case class OneOfBody[O, T](variants: List[OneOfBodyVariant[O]], mapping: Mapping[O, T]) extends Basic[T] with Product with Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OneOfBody
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Basic
  7. Basic
  8. Basic
  9. Basic
  10. Single
  11. Single
  12. Single
  13. EndpointIO
  14. EndpointOutput
  15. EndpointInput
  16. EndpointTransput
  17. EndpointTransputMacros
  18. AnyRef
  19. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OneOfBody(variants: List[OneOfBodyVariant[O]], mapping: Mapping[O, T])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def /[U, TU](other: EndpointInput[U])(implicit concat: typelevel.ParamConcat.Aux[T, U, TU]): EndpointInput[TU]
    Definition Classes
    EndpointInput
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def and[J, IJ](other: EndpointIO[J])(implicit concat: typelevel.ParamConcat.Aux[T, J, IJ]): EndpointIO[IJ]
    Definition Classes
    EndpointIO
  6. def and[J, IJ](other: EndpointOutput[J])(implicit concat: typelevel.ParamConcat.Aux[T, J, IJ]): EndpointOutput[IJ]
    Definition Classes
    EndpointOutput
  7. def and[U, TU](other: EndpointInput[U])(implicit concat: typelevel.ParamConcat.Aux[T, U, TU]): EndpointInput[TU]
    Definition Classes
    EndpointInput
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def map[U](m: Mapping[T, U]): OneOfBody[O, U]
    Definition Classes
    OneOfBodyEndpointTransput
  14. def map[U](f: (T) ⇒ U)(g: (U) ⇒ T): ThisType[U]
    Definition Classes
    EndpointTransput
  15. def mapDecode[U](f: (T) ⇒ DecodeResult[U])(g: (U) ⇒ T): ThisType[U]
    Definition Classes
    EndpointTransput
  16. macro def mapTo[CASE_CLASS]: ThisType[CASE_CLASS]
    Definition Classes
    EndpointTransputMacros
  17. def mapValidate[U](v: Validator[T])(f: (T) ⇒ U)(g: (U) ⇒ T): ThisType[U]

    Adds the given validator, and maps to the given higher-level type U.

    Adds the given validator, and maps to the given higher-level type U.

    Unlike a .validate(v).map(f)(g) invocation, during decoding the validator is run before applying the f function. If there are validation errors, decoding fails. However, the validator is then invoked again on the fully decoded value.

    This is useful to create inputs/outputs for types, which are unrepresentable unless the validator's condition is met, e.g. due to preconditions in the constructor.

    Definition Classes
    EndpointTransput
    See also

    validate

  18. val mapping: Mapping[O, T]
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def show: String
    Definition Classes
    OneOfBodyEndpointTransput
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def validate(v: Validator[T]): ThisType[T]

    Adds a validator.

    Adds a validator.

    Note that validation is run on a fully decoded value. That is, during decoding, first the decoding functions are run, followed by validations. Hence any functions provided in subsequent .maps or .mapDecodes will be invoked before validation.

    Definition Classes
    EndpointTransput
    See also

    mapValidate

  25. val variants: List[OneOfBodyVariant[O]]
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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 Serializable

Inherited from Product

Inherited from Equals

Inherited from Basic[T]

Inherited from EndpointOutput.Basic[T]

Inherited from EndpointInput.Basic[T]

Inherited from EndpointTransput.Basic[T]

Inherited from Single[T]

Inherited from EndpointOutput.Single[T]

Inherited from EndpointInput.Single[T]

Inherited from EndpointIO[T]

Inherited from EndpointOutput[T]

Inherited from EndpointInput[T]

Inherited from EndpointTransput[T]

Inherited from EndpointTransputMacros[T]

Inherited from AnyRef

Inherited from Any

Ungrouped