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

io.circe.generic.encoding.ReprObjectEncoder.scala Maven / Gradle / Ivy

There is a newer version: 0.15.0-M1
Show newest version
package io.circe.generic.encoding

import io.circe.ObjectEncoder
import io.circe.generic.Deriver
import scala.language.experimental.macros

/**
 * An encoder for a generic representation of a case class or ADT.
 *
 * Note that users typically will not work with instances of this class.
 */
abstract class ReprObjectEncoder[A] extends ObjectEncoder[A]

final object ReprObjectEncoder {
  implicit def deriveReprObjectEncoder[R]: ReprObjectEncoder[R] = macro Deriver.deriveEncoder[R]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy