package derivation
Ordering
- Alphabetic
Visibility
- Public
- Protected
Type Members
- sealed trait NeedsDerive[+T] extends AnyRef
Preventing derivation for List, Option and Either.
- final case class describe(describe: String) extends Annotation with StaticAnnotation with Product with Serializable
- final case class name(name: String) extends Annotation with StaticAnnotation with Product with Serializable
- final case class nameWithLabel(keyName: String = "type") extends Annotation with StaticAnnotation with Product with Serializable
nameWithLabel can be used for class names, such that the name of the class should be part of the product with keyName as
keyName.nameWithLabel can be used for class names, such that the name of the class should be part of the product with keyName as
keyName.Example:
@nameWithLabel("type") sealed trait FooBar case class Bar(x: Int) extends FooBar case class Foo(y: String) extends FooBar case object Fooz extends FooBar case class AppConfig(config : FooBar)
corresponds to
config : { type : Bar x : Int }or
config : { type: Foo x: Int }or
config : Fooz
If annotation is
nameinstead ofnameWithLabel, then name of the case class becomes a parent nodeFoo : { x : Int }
Value Members
- object NeedsDerive extends NeedsDerive[Nothing]