zio.prelude
Custom option type to be used for wrapping external data models where most of the fields are defined to be optional.
Instances of Optional are either Optional.Present or Optional.Absent.
The only difference between this type and scala.Option is that there is an implicit conversion defined from A to Optional[A], and from Option[A] to Optional[A].
A
to
, and from
to Optional[A]
Custom option type to be used for wrapping external data models where most of the fields are defined to be optional.
Instances of Optional are either Optional.Present or Optional.Absent.
The only difference between this type and scala.Option is that there is an implicit conversion defined from
A
to
Optional[A], and from
Option[A]
.to
Optional[A]