fieldDefaultValue

zio.schema.annotation.fieldDefaultValue
final case class fieldDefaultValue[A](value: A) extends StaticAnnotation

Annotation specifying the default value that should be utilized when the field is not present during deserialization. This is similar to @optionalField, except that the default value is user-defined rather than computed automatically using the field schema.

Value parameters

value

The default value to use for the field.

Attributes

Source
fieldDefaultValue.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Annotation
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

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