Branch

io.hireproof.structure.Branch
See theBranch companion object
final case class Branch[A](name: String, schema: Eval[Schema[A]]) extends Sum[A]

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Sum[A]
trait Structure[A]
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Types

override type Element[a] = Branch[a]
override type Group[a] = Sum[a]
override type Self[a] = Branch[a]

Value members

Concrete methods

def fromJson(discriminator: Option[Discriminator], json: Option[Json]): Validated[Errors, Option[A]]
override def orElse[T](branch: Branch[T]): Sum[Either[A, T]]

Attributes

Definition Classes
override def orElseAll[T](schema: Sum[T]): Sum[Either[A, T]]

Attributes

Definition Classes
def toJson(discriminator: Option[Discriminator], a: A): Option[Json]
def toSum: Sum[A]

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
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
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: Branch[T]): Group[Either[A, T]]

Attributes

Inherited from:
Sum