scope.generic.ModelMapperBuilderMacrosSyntax.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scope-generic_3 Show documentation
Show all versions of scope-generic_3 Show documentation
A functional and type safe models layer separator
package scope.generic
import scope.{ModelMapper, Scope}
import scala.annotation.unused
private[generic] trait ModelMapperBuilderMacrosSyntax {
extension [S <: Scope](@unused co: ModelMapper.Builder[S]) {
inline def deriveCaseClassIdMap[A, B]: ModelMapper[S, A, B] =
${ ModelMapperCaseClassIdMacros.deriveCaseClassIdMap[S, A, B] }
}
}