ConfiguredEncoder

io.circe.derivation.ConfiguredEncoder
See theConfiguredEncoder companion object
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

Members list

Concise view

Value members

Concrete methods

final def encodeElemAt(index: Int, elem: Any, transformName: String => String): (String, Json)

Attributes

Source:
ConfiguredEncoder.scala
final def encodeProduct(a: A): JsonObject

Attributes

Source:
ConfiguredEncoder.scala
final def encodeSum(index: Int, a: A): JsonObject

Attributes

Source:
ConfiguredEncoder.scala

Inherited methods

final def apply(a: A): Json

Convert a value to JSON.

Convert a value to JSON.

Attributes

Inherited from:
AsObject
Source:
Encoder.scala
final def contramap[B](f: B => A): Encoder[B]

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Attributes

Inherited from:
Encoder
Source:
Encoder.scala
final def contramapObject[B](f: B => A): AsObject[B]

Create a new Encoder.AsObject by applying a function to a value of type B before encoding as an A.

Create a new Encoder.AsObject by applying a function to a value of type B before encoding as an A.

Attributes

Inherited from:
AsObject
Source:
Encoder.scala

Convert a value to a JSON object.

Convert a value to a JSON object.

Attributes

Inherited from:
AsObject
Source:
Encoder.scala
final def mapJson(f: Json => Json): Encoder[A]

Create a new Encoder by applying a function to the output of this one.

Create a new Encoder by applying a function to the output of this one.

Attributes

Inherited from:
Encoder
Source:
Encoder.scala

Create a new Encoder.AsObject by applying a function to the output of this one.

Create a new Encoder.AsObject by applying a function to the output of this one.

Attributes

Inherited from:
AsObject
Source:
Encoder.scala

Abstract fields

lazy val elemEncoders: List[Encoder[_]]

Attributes

Source:
ConfiguredEncoder.scala

Attributes

Source:
ConfiguredEncoder.scala