Optional

object Optional
Companion
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

case
object Absent extends Optional[Nothing]

Optional value that is absent

Optional value that is absent

final case
class Present[+A](get: A) extends Optional[A]

Optional value that is present

Optional value that is present

Type Params
A

type of the value

Value Params
get

the value

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Implicits

Implicits

implicit
def AllValuesAreNullable[A](value: A): Optional[A]
implicit
def OptionIsNullable[A](value: Option[A]): Optional[A]
implicit
def decoder[A : Decoder]: Decoder[Optional[A]]
implicit
def encoder[A : Encoder]: Encoder[Optional[A]]