UPickleSchemaTranslation

org.hungerford.generic.schema.upickle.UPickleSchemaTranslation
See theUPickleSchemaTranslation companion object

Attributes

Companion:
object
Graph
Supertypes
trait BiMapCoproductTranslation[ReadWriter, Reader, Writer, Value, Value]
trait CoproductEncoderTranslation[Writer, Value]
trait WithSubtypeWriter[Writer, Value]
trait CoproductDecoderTranslation[Reader, Value]
trait WithSubtypeReader[Reader, Value]
trait BiMapProductTranslation[ReadWriter, Reader, Writer, Value, Value]
trait ProductEncoderTranslation[Writer, Value]
trait WithFieldWriter[Writer, Value]
trait ProductDecoderTranslation[Reader, Value]
trait WithFieldReader[Reader, Value]
class Object
trait Matchable
class Any
Known subtypes
object upickle.type

Members list

Concise view

Type members

Inherited classlikes

object AFReader

Attributes

Inherited from:
ProductDecoderTranslation
Graph
Supertypes
class Object
trait Matchable
class Any
trait AFReader[AF, AFS, Cache <: TypeCache]()

Attributes

Inherited from:
ProductDecoderTranslation
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
CoproductDecoderTranslation
Graph
Supertypes
class Object
trait Matchable
class Any
trait CoproductReader[T, R, D, DN, Cache <: TypeCache]()

Attributes

Inherited from:
CoproductDecoderTranslation
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
CoproductEncoderTranslation
Graph
Supertypes
class Object
trait Matchable
class Any
trait CoproductWriter[V, R, Cache <: TypeCache]()

Attributes

Inherited from:
CoproductEncoderTranslation
Graph
Supertypes
class Object
trait Matchable
class Any
trait DiscrReader[DV]()

Attributes

Inherited from:
WithSubtypeReader
Graph
Supertypes
class Object
trait Matchable
class Any
trait FieldReader[F, N <: TypeName]()

Attributes

Inherited from:
WithFieldReader
Graph
Supertypes
class Object
trait Matchable
class Any
trait FieldWriter[F, N <: TypeName]()

Attributes

Inherited from:
WithFieldWriter
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ProductDecoderTranslation
Graph
Supertypes
class Object
trait Matchable
class Any
trait FieldsReader[R <: Tuple, Cache <: TypeCache]()

Attributes

Inherited from:
ProductDecoderTranslation
Graph
Supertypes
class Object
trait Matchable
class Any
trait SubtypeReader[ST, N <: TypeName]()

Attributes

Inherited from:
WithSubtypeReader
Graph
Supertypes
class Object
trait Matchable
class Any
trait SubtypeWriter[ST, N <: TypeName]()

Attributes

Inherited from:
WithSubtypeWriter
Graph
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

def buildCoproductDecoder[T](decode: Value => Option[T]): Reader[T]

Attributes

Inherited from:
UPickleCoproductSchemaTranslation
def buildCoproductEncoder[T](encode: T => Value): Writer[T]

Attributes

Inherited from:
UPickleCoproductSchemaTranslation
def buildCoproductSchema[T](enc: Writer[T], dec: Reader[T]): ReadWriter[T]

Attributes

Inherited from:
UPickleCoproductSchemaTranslation
def buildProductDecoder[T](decode: Value => Try[T]): Reader[T]

Attributes

Inherited from:
UPickleProductTranslation
def buildProductEncoder[T](decode: T => Value): Writer[T]

Attributes

Inherited from:
UPickleProductTranslation
def buildProductSchema[T](enc: Writer[T], dec: Reader[T]): ReadWriter[T]

Attributes

Inherited from:
UPickleProductTranslation
def getField[AF](from: Value, fieldName: String, decoder: Reader[AF]): Try[AF]

Attributes

Inherited from:
UPickleProductTranslation
def getFieldNames(from: Value): Set[String]

Attributes

Inherited from:
UPickleProductTranslation
def mergeFields[T](fieldMap: List[(String, Value)]): Value

Attributes

Inherited from:
UPickleProductTranslation
inline def writeAdditionalFields[T, AF, AFS, AFE]: (T, AFE, Aux[AF, AFS], Map[String, (Int, Sink)], Set[String]) => Unit

Attributes

Inherited from:
ProductEncoderTranslation
def writeField[T](value: T, encoder: Writer[T]): Value

Attributes

Inherited from:
UPickleProductTranslation
inline def writeFields[T, FS <: Tuple, Cache <: TypeCache]: (T, FS, Map[String, (Int, Sink)], Cache) => Unit

Attributes

Inherited from:
ProductEncoderTranslation

Givens

Givens

given given_RecursiveSchemaTranslator_T_S_Cache_ReadWriter[T, S, Cache <: TypeCache](using encTr: RecursiveSchemaTranslator[T, S, Empty, Writer], decTr: RecursiveSchemaTranslator[T, S, Empty, Reader]): given_RecursiveSchemaTranslator_T_S_Cache_ReadWriter[T, S, Cache]

Inherited givens

given decoderTranslator[T, R <: Tuple, RV <: Tuple, D, DN, Cache <: TypeCache](using reader: CoproductReader[T, R, D, DN, Cached[Cache, T, Reader[T]]]): decoderTranslator[T, R, RV, D, DN, Cache]

Attributes

Inherited from:
CoproductDecoderTranslation
given encoderTranslator[T, R <: Tuple, RV <: Tuple, D, DN, Cache <: TypeCache](using writer: CoproductWriter[T, R, Cached[Cache, T, RecursiveSchemaTranslator[T, CoproductShape[T, R, RV, D, DN], Cache, Writer]]]): encoderTranslator[T, R, RV, D, DN, Cache]

Attributes

Inherited from:
CoproductEncoderTranslation
given given_DiscrReader_DV[DV]: given_DiscrReader_DV[DV]

Attributes

Inherited from:
UPickleCoproductSchemaTranslation
given given_SubtypeReader_ST_N[ST, N <: TypeName]: given_SubtypeReader_ST_N[ST, N]

Attributes

Inherited from:
UPickleCoproductSchemaTranslation
given given_SubtypeWriter_ST_N[T, ST, N <: TypeName]: given_SubtypeWriter_ST_N[T, ST, N]

Attributes

Inherited from:
UPickleCoproductSchemaTranslation
given singletonDecoder[T <: Singleton, N <: TypeName, Cache <: TypeCache]: singletonDecoder[T, N, Cache]

Attributes

Inherited from:
UPickleSingletonSchemaTranslation
given singletonEncoder[T <: Singleton, N <: TypeName, Cache <: TypeCache]: singletonEncoder[T, N, Cache]

Attributes

Inherited from:
UPickleSingletonSchemaTranslation
inline given translateProductReaderRecursive[T, R <: Tuple, RV <: Tuple, AF, AFS, AFE, C, Cache <: TypeCache](using pc: ProductConstructor[C, RV, AF, T], fieldsReader: Aux[R, Cached[Cache, T, Reader[T]], Try[RV]], afReader: AFReader[AF, AFS, Cached[Cache, T, Reader[T]]]): RecursiveSchemaTranslator[T, ProductShape[T, R, RV, AF, AFS, AFE, C], Cache, DecoderSch]

Attributes

Inherited from:
ProductDecoderTranslation
inline given translateProductWriter[T, R <: Tuple, RV <: Tuple, AF, AFS, AFE, C, Cache <: TypeCache]: RecursiveSchemaTranslator[T, ProductShape[T, R, RV, AF, AFS, AFE, C], Cache, EncoderSch]

Attributes

Inherited from:
ProductEncoderTranslation