RW

fabric.rw.RW$
See theRW companion trait
object RW extends CompileRW

Attributes

Companion:
trait
Source:
RW.scala
Graph
Supertypes
trait CompileRW
class Object
trait Matchable
class Any
Self type
RW.type

Members list

Concise view

Value members

Concrete methods

def enumeration[T](list: List[T], asString: T => String, caseSensitive: Boolean): RW[T]

Attributes

Source:
RW.scala
def enumeration[T](fieldName: String, mapping: (String, T)*): RW[T]

Convenience functionality for working with enumerations

Convenience functionality for working with enumerations

Attributes

fieldName

the field name to refer to in the Json

mapping

a mapping of key/value pairs representing the String in fieldName to the representative value

Source:
RW.scala
def from[T](r: T => Json, w: Json => T, d: => DefType): RW[T]

Attributes

Source:
RW.scala
def poly[P](fieldName: String, getType: P => String)(matcher: PartialFunction[String, RW[_ <: P]]): RW[P]

Convenience functionality for working with polymorphic types

Convenience functionality for working with polymorphic types

Attributes

fieldName

the field name stored in the value (defaults to "type")

getType

a function to determine the field value from an instance (defaults to the class name with the first character lowercase - defaultGetType)

matcher

a matcher for field values to get the representative RW for that type

Source:
RW.scala
def static[T](value: T): RW[T]

Convenience functionality to provide a static / singleton value that represents that type

Convenience functionality to provide a static / singleton value that represents that type

Attributes

value

the singleton value to use

Source:
RW.scala
def string[T](asString: T => String, fromString: String => T): RW[T]

Attributes

Source:
RW.scala

Inherited methods

inline def fromMap[T <: Product](map: Map[String, Json])(using p: ProductOf[T]): T

Attributes

Inherited from:
CompileRW
Source:
CompileRW.scala
inline def fromMapElems[A <: Product, T <: Tuple, L <: Tuple](map: Map[String, Json], index: Int, arr: Array[Any], defaults: Map[String, Any]): Unit

Attributes

Inherited from:
CompileRW
Source:
CompileRW.scala
inline def gen[T <: Product](using ProductOf[T]): RW[T]

Attributes

Inherited from:
CompileRW
Source:
CompileRW.scala
inline def genR[T <: Product](using ProductOf[T]): Reader[T]

Attributes

Inherited from:
CompileRW
Source:
CompileRW.scala
inline def genW[T <: Product](using ProductOf[T]): Writer[T]

Attributes

Inherited from:
CompileRW
Source:
CompileRW.scala
inline def getClassName[T]: String

Attributes

Inherited from:
CompileRW
Source:
CompileRW.scala
inline def getDefaultParams[T]: Map[String, AnyRef]

Attributes

Inherited from:
CompileRW
Source:
CompileRW.scala
inline def toDefinition[T <: Product](using p: ProductOf[T]): DefType

Attributes

Inherited from:
CompileRW
Source:
CompileRW.scala
inline def toDefinitionElems[A <: Product, T <: Tuple, L <: Tuple](index: Int): Map[String, DefType]

Attributes

Inherited from:
CompileRW
Source:
CompileRW.scala
inline def toMap[T <: Product](t: T)(using p: ProductOf[T]): Map[String, Json]

Attributes

Inherited from:
CompileRW
Source:
CompileRW.scala
inline def toMapElems[A <: Product, T <: Tuple, L <: Tuple](a: A, index: Int): Map[String, Json]

Attributes

Inherited from:
CompileRW
Source:
CompileRW.scala

Implicits

Implicits

implicit lazy val bigDecimalRW: RW[BigDecimal]

Attributes

Source:
RW.scala
implicit lazy val bigIntRW: RW[BigInt]

Attributes

Source:
RW.scala
implicit lazy val boolRW: RW[Boolean]

Attributes

Source:
RW.scala
implicit lazy val byteRW: RW[Byte]

Attributes

Source:
RW.scala
implicit lazy val doubleRW: RW[Double]

Attributes

Source:
RW.scala
implicit lazy val floatRW: RW[Float]

Attributes

Source:
RW.scala
implicit lazy val intRW: RW[Int]

Attributes

Source:
RW.scala
implicit def listRW[V : RW]: RW[List[V]]

Attributes

Source:
RW.scala
implicit lazy val longRW: RW[Long]

Attributes

Source:
RW.scala
implicit def mapRW[V : RW]: RW[Map[String, V]]

Attributes

Source:
RW.scala
implicit lazy val objRW: RW[Obj]

Attributes

Source:
RW.scala
implicit def optionRW[V : RW]: RW[Option[V]]

Attributes

Source:
RW.scala
implicit def setRW[V : RW]: RW[Set[V]]

Attributes

Source:
RW.scala
implicit lazy val shortRW: RW[Short]

Attributes

Source:
RW.scala
implicit lazy val stringRW: RW[String]

Attributes

Source:
RW.scala
implicit lazy val unitRW: RW[Unit]

Attributes

Source:
RW.scala
implicit lazy val valueRW: RW[Json]

Attributes

Source:
RW.scala
implicit def vectorRW[V : RW]: RW[Vector[V]]

Attributes

Source:
RW.scala