c

com.avsystem.commons.meta

reifyDefaultValue

final class reifyDefaultValue extends Annotation with DirectMetadataParamStrategy

Metadata parameter annotated with this annotation must be of type DefaultValue[T] where T is the type of case class field for which metadata is being materialized. The parameter may also be marked as optional and wrapped into an Option, Opt, etc.

As a value of this metadata parameter, macro engine will capture and reify case class field's Scala-level default value wrapped into DefaultValue[T]. **NOTE**: this only works for case class fields, unfortunately it does not work RPC method parameters because it's not possible to obtain default value of RPC method parameter without having some actual instance of RPC trait.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. reifyDefaultValue
  2. DirectMetadataParamStrategy
  3. MetadataParamStrategy
  4. StaticAnnotation
  5. Annotation
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new reifyDefaultValue()