Optional

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

Attributes

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

Attributes

Inherited from:
Predicate

Value members

Concrete methods

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

Inherited methods

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

Attributes

Inherited from:
Predicate

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product