semiauto

io.circe.generic.semiauto$
object semiauto

Semi-automatic codec derivation.

This object provides helpers for creating io.circe.Decoder and io.circe.ObjectEncoder instances for case classes, "incomplete" case classes, sealed trait hierarchies, etc.

Typical usage will look like the following:

 import io.circe._, io.circe.generic.semiauto._

 case class Foo(i: Int, p: (String, Double))

 object Foo {
   implicit val decodeFoo: Decoder[Foo] = deriveDecoder[Foo]
   implicit val encodeFoo: Encoder.AsObject[Foo] = deriveEncoder[Foo]
 }

Attributes

Source:
semiauto.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

final inline def deriveCodec[A](using inline A: Of[A]): AsObject[A]

Attributes

Source:
semiauto.scala
final inline def deriveDecoder[A](using inline A: Of[A]): Decoder[A]

Attributes

Source:
semiauto.scala
final inline def deriveEncoder[A](using inline A: Of[A]): AsObject[A]

Attributes

Source:
semiauto.scala