com.rallyhealth.weepickle.v1.implicits
Members list
Packages
Type members
Classlikes
Attributes
- Supertypes
-
trait LowPriFromstrait Generatedtrait Typestrait MacroImplicitstrait CaseClassFromPiecetrait CaseClassToPiecetrait MacrosCommonclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait Froms
- Self type
-
Annotator
Attributes
- Supertypes
-
trait Generatedtrait Typestrait MacroImplicitstrait CaseClassFromPiecetrait CaseClassToPiecetrait MacrosCommonclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait Tos
- Self type
-
Annotator
Attributes
- Supertypes
-
trait DefaultFromstrait LowPriFromstrait Generatedtrait Typestrait MacroImplicitstrait CaseClassFromPiecetrait CaseClassToPiecetrait MacrosCommonclass Objecttrait Matchableclass AnyShow all
- Self type
-
Annotator
Auto-generated picklers and unpicklers, used for creating the 22 versions of tuple-picklers and case-class picklers
Auto-generated picklers and unpicklers, used for creating the 22 versions of tuple-picklers and case-class picklers
Attributes
- Supertypes
-
trait Typesclass Objecttrait Matchableclass Any
- Known subtypes
This needs to be split into a separate trait due to https://github.com/scala/bug/issues/11768
This needs to be split into a separate trait due to https://github.com/scala/bug/issues/11768
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait DefaultFromstrait Froms
- Self type
-
Types
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
trait DefaultTostrait Generatedtrait Typestrait MacroImplicitstrait CaseClassFromPiecetrait CaseClassToPiecetrait MacrosCommonclass Objecttrait Matchableclass AnyShow all
- Self type
-
Annotator
Defines the name of a new field (not defined in the class itself) to serve as the discriminator property name for identifying subclasses.
Defines the name of a new field (not defined in the class itself) to serve as the discriminator property name for identifying subclasses.
For naming, consider that some implementations (e.g. vpack) may sort object keys, so symbol prefixes work well for ensuring the tag is the first property. Tos will fast path if this is the first field of the object. Otherwise, Tos will have to buffer the content and find the tag later.
You can also tag the subclasses with key to override values for this field, which will otherwise default to the FQCN of the classname.
Attributes
- See also
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StaticAnnotationclass Annotationclass Objecttrait Matchableclass AnyShow all
If the value of the annotated field .equals() the default value at runtime, then the macro-generated From will omit both the key and value from the serialized blob.
If the value of the annotated field .equals() the default value at runtime, then the macro-generated From will omit both the key and value from the serialized blob.
==Example==
case class FooDefault(
@dropDefault i: Int = 10,
@dropDefault s: String = "lol"
)
write(FooDefault(i = 11, s = "lol")) ==> """{"i":11}"""
write(FooDefault(i = 10, s = "lol")) ==> """{}"""
write(FooDefault()) ==> """{}"""
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
May be used on either:
May be used on either:
- subclasses to override discriminator values (default: FQCN)
- class fields to override field name.
Attributes
- See also
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StaticAnnotationclass Annotationclass Objecttrait Matchableclass AnyShow all