Defaultable

dev.cheleb.scalamigen.Defaultable
See theDefaultable companion object
trait Defaultable[A]

Typeclass for default values.

This typeclass is used to provide default values for a given type. It is used to provide default values for form fields when creating a new object, for example.

It is necessary to provide a default value for every type used in the application and wrapped in a option.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def default: A

The default value for the type.

The default value for the type.

Attributes

Concrete methods

def label: String

The label for the type.

The label for the type.

Attributes