Result

io.hireproof.structure.Output$.Result
See theResult companion object
sealed abstract class Result[A](val code: Code, val headers: Chain[(CIString, String)]) extends Sum[A]

Attributes

Companion:
object
Graph
Supertypes
trait Sum[A]
trait Structure[A]
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Types

final override type Element[a] = Result[a]
final override type Group[a] = Results[a]
final override type Self[a] = Result[a]

Value members

Abstract methods

def fromResponse(response: Response): Validated[Errors, A]
def toResponse(a: A): Response

Concrete methods

final override def orElse[T](result: Result[T]): Results[Either[A, T]]

Attributes

Definition Classes
final override def orElseAll[T](results: Results[T]): Results[Either[A, T]]

Attributes

Definition Classes

Inherited methods

final def const(value: => A): Self[Unit]

Attributes

Inherited from:
Structure
final def imap[T](f: A => T)(g: T => A): Self[T]

Attributes

Inherited from:
Structure
final def ivalidate[T](validation: Validation[A, T])(g: T => A): Self[T]

Attributes

Inherited from:
Structure
final def merge[T](implicit evidence: Aux[A, T]): Self[T]

Attributes

Inherited from:
Structure
final def validate(validation: Validation[A, A]): Self[A]

Attributes

Inherited from:
Structure
final def ximap[T](implicit evidence: Aux[T, A]): Self[T]

Attributes

Inherited from:
Sum
final def |+|[T](element: Result[T]): Group[Either[A, T]]

Attributes

Inherited from:
Sum

Concrete fields

val code: Code
val headers: Chain[(CIString, String)]