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

tethys.derivation.AutoDerivation.scala Maven / Gradle / Ivy

There is a newer version: 0.29.1
Show newest version
package tethys.derivation

import tethys.commons.LowPriorityInstance
import tethys.derivation.impl.derivation.AutoDerivationMacro
import tethys.{JsonObjectWriter, JsonReader}

import scala.language.experimental.macros

trait AutoDerivation {
  implicit def jsonWriterMaterializer[A]: LowPriorityInstance[JsonObjectWriter[A]] = macro AutoDerivationMacro.jsonWriter[A]
  implicit def jsonReaderMaterializer[A]: LowPriorityInstance[JsonReader[A]] = macro AutoDerivationMacro.jsonReader[A]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy