UPickleProductTranslation

org.hungerford.generic.schema.upickle.UPickleProductTranslation
See theUPickleProductTranslation companion object
trait UPickleProductTranslation extends BiMapProductTranslation[ReadWriter, Reader, Writer, Value, Value]

Attributes

Companion:
object
Graph
Supertypes
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

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
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

Value members

Concrete methods

def buildProductDecoder[T](decode: Value => Try[T]): Reader[T]
def buildProductEncoder[T](decode: T => Value): Writer[T]
def buildProductSchema[T](enc: Writer[T], dec: Reader[T]): ReadWriter[T]
def getField[AF](from: Value, fieldName: String, decoder: Reader[AF]): Try[AF]
def getFieldNames(from: Value): Set[String]
def mergeFields[T](fieldMap: List[(String, Value)]): Value
def writeField[T](value: T, encoder: Writer[T]): Value

Inherited methods

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

Attributes

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

Attributes

Inherited from:
ProductEncoderTranslation

Givens

Inherited givens

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