io.circe.derivation

Members list

Concise view

Type members

Classlikes

Attributes

Companion:
class
Source:
Configuration.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class Configuration(transformMemberNames: String => String, transformConstructorNames: String => String, useDefaults: Boolean, discriminator: Option[String], strictDecoding: Boolean)

Configuration allowing customization of the JSON produced when encoding, or expected when decoding.

Configuration allowing customization of the JSON produced when encoding, or expected when decoding.

Attributes

discriminator

Optional key name that, when given, will be used to store the name of the constructor of an ADT in a nested field with this name. If not given, the name is instead stored as a key under which the contents of the ADT are stored as an object.

strictDecoding

Whether to fail when superfluous fields are found.

transformConstructorNames

Transforms the value of any constructor names in the JSON allowing, for example, formatting or case changes.

transformMemberNames

Transforms the names of any case class members in the JSON allowing, for example, formatting or case changes.

useDefaults

Whether to allow default values as specified for any case-class members.

Companion:
object
Source:
Configuration.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
trait ConfiguredCodec[A] extends AsObject[A] with ConfiguredDecoder[A] with ConfiguredEncoder[A]

Attributes

Companion:
object
Source:
ConfiguredCodec.scala
Graph
Supertypes
trait AsObject[A]
trait AsObject[A]
trait AsRoot[A]
trait AsRoot[A]
trait Codec[A]
trait Encoder[A]
trait Decoder[A]
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Source:
ConfiguredCodec.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait ConfiguredDecoder[A](using conf: Configuration) extends Decoder[A]

Attributes

Companion:
object
Source:
ConfiguredDecoder.scala
Graph
Supertypes
trait Decoder[A]
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Source:
ConfiguredDecoder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait ConfiguredEncoder[A](using conf: Configuration) extends AsObject[A]

Attributes

Companion:
object
Source:
ConfiguredEncoder.scala
Graph
Supertypes
trait AsObject[A]
trait AsRoot[A]
trait Encoder[A]
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Source:
ConfiguredEncoder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait ConfiguredEnumCodec[A] extends Codec[A]

Attributes

Companion:
object
Source:
ConfiguredEnumCodec.scala
Graph
Supertypes
trait Codec[A]
trait Encoder[A]
trait Decoder[A]
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Source:
ConfiguredEnumCodec.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait ConfiguredEnumDecoder[A] extends Decoder[A]

Attributes

Companion:
object
Source:
ConfiguredEnumDecoder.scala
Graph
Supertypes
trait Decoder[A]
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Source:
ConfiguredEnumDecoder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait ConfiguredEnumEncoder[A] extends Encoder[A]

Attributes

Companion:
object
Source:
ConfiguredEnumEncoder.scala
Graph
Supertypes
trait Encoder[A]
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Source:
ConfiguredEnumEncoder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait Default[T] extends Serializable

Original code by Dmytro Mitin, with slight modifications by Simão Martins. See: https://stackoverflow.com/questions/68421043/type-class-derivation-accessing-default-values

Original code by Dmytro Mitin, with slight modifications by Simão Martins. See: https://stackoverflow.com/questions/68421043/type-class-derivation-accessing-default-values

Attributes

Companion:
object
Source:
Default.scala
Graph
Supertypes
class Object
trait Matchable
class Any
object Default

Attributes

Companion:
trait
Source:
Default.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Default.type
object renaming

Attributes

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