Packages

p

zio.config

derivation

package derivation

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed trait NeedsDerive[+T] extends AnyRef

    Preventing derivation for List, Option and Either.

  2. final case class describe(describe: String) extends Annotation with StaticAnnotation with Product with Serializable
  3. final case class name(name: String) extends Annotation with StaticAnnotation with Product with Serializable
  4. 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 name instead of nameWithLabel, then name of the case class becomes a parent node

    Foo : {
     x : Int
    }

Value Members

  1. object NeedsDerive extends NeedsDerive[Nothing]

Ungrouped