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

com.avsystem.commons.serialization.transparent.scala Maven / Gradle / Ivy

There is a newer version: 2.22.0
Show newest version
package com.avsystem.commons
package serialization

/**
  * Can be used on case classes with exactly one field to instruct automatically generated `GenCodec` that the
  * class is a "transparent wrapper" and should be serialized to the same representation as the value of its sole
  * field.
  *
  * Whenever possible, it's better to use [[TransparentWrapperCompanion]] rather than this annotation.
  * [[TransparentWrapperCompanion]] will give you more typeclass instances for free (e.g. `GenKeyCodec` in addition to
  * just `GenCodec`) while this annotation requires special macro support from every typeclass.
  */
class transparent extends StaticAnnotation




© 2015 - 2025 Weber Informatics LLC | Privacy Policy