package circe
Ordering
- Alphabetic
Visibility
- Public
- Protected
Type Members
- class CirceToolMacro extends AnyRef
- final case class DerivationDerivedCodec[A](value: AsObject[A]) extends AnyVal with Product with Serializable
- final case class DerivationDerivedDecoder[A](value: Decoder[A]) extends AnyVal with Product with Serializable
- final case class DerivationDerivedEncoder[A](value: AsObject[A]) extends AnyVal with Product with Serializable
- final class MaterializeDerivationMacros extends AnyRef
- abstract class WithCirce[A] extends AnyRef
Requires library dependency on
"io.circe" %% "circe-derivation" % "0.13.0-M5"
or later (NOT brought in as a dependency automatically)Requires library dependency on
"io.circe" %% "circe-derivation" % "0.13.0-M5"
or later (NOT brought in as a dependency automatically)Provides circe codecs for case classes and sealed traits
final case class Abc(a: String, b: String, c: String) object Abc extends WithCirce[Abc]
To derive codecs for a sealed trait with branches inside its own companion object, use a proxy object - this works around a scala limitation: https://github.com/milessabin/shapeless/issues/837
sealed trait Abc private abcCodecs extends WithCirce[Abc] object Abc extends WithCirce(abcCodecs) { final case class A() object A extends WithCirce[A] final case class B() object B extends WithCirce[B] final case class C() object C extends WithCirce[C] }
Value Members
- object CirceTool
- object DerivationDerivedCodec extends Serializable
- object DerivationDerivedDecoder extends Serializable
- object DerivationDerivedEncoder extends Serializable