caseName

zio.schema.annotation.caseName
final case class caseName(name: String) extends StaticAnnotation

Annotation for specifying an alternate identity for a case of an enum. Currently, the subtype name is always used.

This is the dual of @fieldName, but for sums rather than products.

Value parameters

name

The alternate name to use for the case.

Attributes

Source
caseName.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