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.
Metadata parameter annotated with this annotation must be of type
DefaultValue[T]
whereT
is the type of case class field for which metadata is being materialized. The parameter may also be marked as optional and wrapped into anOption
,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.