Field

io.eezo.http.Field
See theField companion trait
object Field

Attributes

Companion
trait
Source
Field.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Field.type

Members list

Value members

Concrete methods

def apply[X](using f: Field[X]): Field[X]

Attributes

Source
Field.scala
def of[X](tpe: String)(write: X => String)(parse: String => Either[String, X]): Field[X]

Builds an instance from the three members that always differ.

Builds an instance from the three members that always differ.

Attributes

Source
Field.scala

Givens

Givens

given given_Field_Boolean: Field[Boolean]

A checkbox. Every value a browser sends for a checked box means true; the only thing that means false is the key being absent, which is Field.absent's job rather than this one's.

A checkbox. Every value a browser sends for a checked box means true; the only thing that means false is the key being absent, which is Field.absent's job rather than this one's.

Attributes

Source
Field.scala
given given_Field_Double: Field[Double]

Attributes

Source
Field.scala
given given_Field_Id: [T] => Field[Id[T]]

A model's key.

A model's key.

Id[T] is core's and its Column is db's; this is the same UUID read through the same text, so it delegates rather than parsing a second time. A key is never rendered into a form (see Form), but it is still read through its own Field, which is what keeps one decoder for it rather than two.

Attributes

Source
Field.scala

Attributes

Source
Field.scala
given given_Field_Int: Field[Int]

Attributes

Source
Field.scala

Attributes

Source
Field.scala
given given_Field_Long: Field[Long]

Attributes

Source
Field.scala
given given_Field_Option: [X] => Field[X] => Field[Option[X]]

An optional field. Empty text and an absent key are the same thing to a browser, so both are None here, and neither can ever be "is required".

An optional field. Empty text and an absent key are the same thing to a browser, so both are None here, and neither can ever be "is required".

Attributes

Source
Field.scala
given given_Field_String: Field[String]

Attributes

Source
Field.scala

Attributes

Source
Field.scala