trait CirceTraitCodec[Ser <: AnyRef] extends Codec[Ser]
- Alphabetic
- By Inheritance
- CirceTraitCodec
- Codec
- Encoder
- Decoder
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- implicit abstract val classTagEvidence: ClassTag[Ser]
- abstract val codecs: Seq[Registration[_ <: Ser]]
Sequence that must contain org.virtuslab.ash.circe.Registration for all direct subclasses of Ser.
Sequence that must contain org.virtuslab.ash.circe.Registration for all direct subclasses of Ser.
Each
Registrationis created using org.virtuslab.ash.circe.Registers org.virtuslab.ash.circe.Register#apply method.To check if all needed classes are registered, use Codec Registration Checker.
- See also
org.virtuslab.ash.circe.Registerorg.virtuslab.ash.circe.Register#apply for more information about type derivation
- abstract val errorCallback: (String) => Unit
- abstract val manifestMigrations: Seq[(String, Class[_])]
A sequence containing information used in type migration.
A sequence containing information used in type migration.
If you ever change the name of a class that is a direct descendant of
Serand is persisted in any way, you must append new pair to this field.- The first element of the pair is a String with the value of old FQCN.
- The second element of the pair is a Class that had its name changed
Example:
override lazy val manifestMigrations = Seq( "app.OldName" -> classOf[app.NewName] )
- abstract val packagePrefix: String
Package prefix of your project.
Package prefix of your project. Ensure that
Seris included in that package and as many classes that extend it.It should look something like
"org.group.project"It is used for some runtime checks that are executed at the end of constructor.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(a: Ser): Json
Encoder apply method - encodes given object of type Ser into Json
Encoder apply method - encodes given object of type Ser into Json
- Definition Classes
- CirceTraitCodec → Encoder
- def apply(c: HCursor): Result[Ser]
Decoder apply method - decodes from Json into an object of type Ser
Decoder apply method - decodes from Json into an object of type Ser
- Definition Classes
- CirceTraitCodec → Decoder
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def at(field: String): Decoder[Ser]
- Definition Classes
- Decoder
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val codecsMap: Map[String, (Encoder[_ <: Ser], Decoder[_ <: Ser])]
- Attributes
- protected
- final def contramap[B](f: (B) => Ser): Encoder[B]
- Definition Classes
- Encoder
- def decodeAccumulating(c: HCursor): AccumulatingResult[Ser]
- Definition Classes
- Decoder
- final def decodeJson(j: Json): Result[Ser]
- Definition Classes
- Decoder
- final def either[B](decodeB: Decoder[B]): Decoder[Either[Ser, B]]
- Definition Classes
- Decoder
- final def emap[B](f: (Ser) => Either[String, B]): Decoder[B]
- Definition Classes
- Decoder
- final def emapTry[B](f: (Ser) => Try[B]): Decoder[B]
- Definition Classes
- Decoder
- final def ensure(errors: (Ser) => List[String]): Decoder[Ser]
- Definition Classes
- Decoder
- final def ensure(pred: (Ser) => Boolean, message: => String): Decoder[Ser]
- Definition Classes
- Decoder
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def flatMap[B](f: (Ser) => Decoder[B]): Decoder[B]
- Definition Classes
- Decoder
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def handleErrorWith(f: (DecodingFailure) => Decoder[Ser]): Decoder[Ser]
- Definition Classes
- Decoder
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def iemap[B](f: (Ser) => Either[String, B])(g: (B) => Ser): Codec[B]
- Definition Classes
- Codec
- def iemapTry[B](f: (Ser) => Try[B])(g: (B) => Ser): Codec[B]
- Definition Classes
- Codec
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def kleisli: Kleisli[Result, HCursor, Ser]
- Definition Classes
- Decoder
- def manifest(o: AnyRef): String
- val manifestMigrationsMap: Map[String, String]
- Attributes
- protected
- final def map[B](f: (Ser) => B): Decoder[B]
- Definition Classes
- Decoder
- final def mapJson(f: (Json) => Json): Encoder[Ser]
- Definition Classes
- Encoder
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def or[AA >: Ser](d: => Decoder[AA]): Decoder[AA]
- Definition Classes
- Decoder
- final def prepare(f: (ACursor) => ACursor): Decoder[Ser]
- Definition Classes
- Decoder
- final def product[B](fb: Decoder[B]): Decoder[(Ser, B)]
- Definition Classes
- Decoder
- lazy val shouldDoMissingCodecsCheck: Boolean
- Attributes
- protected
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tryDecode(c: ACursor): Result[Ser]
- Definition Classes
- Decoder
- def tryDecodeAccumulating(c: ACursor): AccumulatingResult[Ser]
- Definition Classes
- Decoder
- final def validate(pred: (HCursor) => Boolean, message: => String): Decoder[Ser]
- Definition Classes
- Decoder
- final def validate(errors: (HCursor) => List[String]): Decoder[Ser]
- Definition Classes
- Decoder
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def withErrorMessage(message: String): Decoder[Ser]
- Definition Classes
- Decoder