All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zio.schema.annotation.caseName.scala Maven / Gradle / Ivy

The newest version!
package zio.schema.annotation

import scala.annotation.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.
 *
 * @param name The alternate name to use for the case.
 */
final case class caseName(name: String) extends StaticAnnotation




© 2015 - 2024 Weber Informatics LLC | Privacy Policy