Optional

zio.schema.validation.Predicate.Optional
final case class Optional[A](pred: Bool[Predicate[A]], validNone: Boolean) extends Predicate[Option[A]]

Attributes

Source
Predicate.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Predicate[Option[A]]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

Attributes

Inherited from:
Predicate
Source
Predicate.scala

Attributes

Inherited from:
Predicate
Source
Predicate.scala

Value members

Concrete methods

def validate(value: Option[A]): Result

Attributes

Source
Predicate.scala

Inherited methods

def contramap[B](f: B => Option[A]): Predicate[B]

Attributes

Inherited from:
Predicate
Source
Predicate.scala

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala