sttp.tapir.macros.EndpointTransputMacros.scala Maven / Gradle / Ivy
package sttp.tapir.macros
import sttp.tapir.EndpointTransput
import sttp.tapir.internal.MappingMacros
import scala.deriving.Mirror
trait EndpointTransputMacros[T] { this: EndpointTransput[T] =>
inline def mapTo[CASE_CLASS <: Product](using mc: Mirror.ProductOf[CASE_CLASS]): ThisType[CASE_CLASS] =
this.map(MappingMacros.mappingImpl[T, CASE_CLASS])
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy