Field

io.hireproof.structure.Field
See theField companion object
final case class Field[A](name: String, schema: Eval[Schema[A]]) extends Product[A]

Attributes

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

Members list

Concise view

Type members

Types

override type Element[a] = Field[a]
override type Group[a] = Product[a]
override type Self[a] = Field[a]

Value members

Concrete methods

def fromJsonObject(json: JsonObject): Validated[Errors, (JsonObject, A)]
def toJsonObject(a: A): JsonObject
override def zip[T](field: Field[T]): Product[(A, T)]

Attributes

Definition Classes
override def zipAll[T](schema: Product[T]): Product[(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
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:
Product
final def |*|[T](element: Field[T])(implicit evidence: Merger[(A, T)]): Group[Out]

Attributes

Inherited from:
Product