given_Encoder_Struct

io.github.serhiip.constellations.common.Codecs.given_Encoder_Struct
object given_Encoder_Struct extends Encoder[Struct]

Attributes

Graph
Supertypes
trait Encoder[Struct]
trait Serializable
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(struct: Struct): Json

Convert a value to JSON.

Convert a value to JSON.

Attributes

Inherited methods

final def contramap[B](f: B => Struct): 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
final def mapJson(f: Json => Json): Encoder[Struct]

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