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
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
Members list
In this article