DecodeResult

sttp.tapir.DecodeResult$
See theDecodeResult companion trait

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

case class Error(original: String, error: Throwable) extends Failure

Any error that occurred while decoding the original value.

Any error that occurred while decoding the original value.

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Failure
trait DecodeResult[Nothing]
class Object
trait Matchable
class Any
object Error

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Error.type
sealed trait Failure extends DecodeResult[Nothing]

Attributes

Graph
Supertypes
trait DecodeResult[Nothing]
class Object
trait Matchable
class Any
Known subtypes
class Error
class Mismatch
object Missing.type
class Multiple[R]
case class InvalidValue(errors: List[ValidationError[_]]) extends Failure

A validation error that occurred when decoding the value, that is, when some Validator failed.

A validation error that occurred when decoding the value, that is, when some Validator failed.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Failure
trait DecodeResult[Nothing]
class Object
trait Matchable
class Any
case class Mismatch(expected: String, actual: String) extends Failure

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Failure
trait DecodeResult[Nothing]
class Object
trait Matchable
class Any
case object Missing extends Failure

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Failure
trait DecodeResult[Nothing]
class Object
trait Matchable
class Any
Self type
Missing.type
case class Multiple[R](vs: Seq[R]) extends Failure

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Failure
trait DecodeResult[Nothing]
class Object
trait Matchable
class Any
case class Value[T](v: T) extends DecodeResult[T]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait DecodeResult[T]
class Object
trait Matchable
class Any

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromEitherString[T](original: String, o: Either[String, T]): DecodeResult[T]
def fromOption[T](o: Option[T]): DecodeResult[T]
def sequence[T](results: Seq[DecodeResult[T]]): DecodeResult[Seq[T]]