All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sttp.tapir.macros.EndpointTransputMacros.scala Maven / Gradle / Ivy

There is a newer version: 1.11.9
Show newest version
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