The names of the product elements
The name of the type
Create a part codec which reads the raw part as R and later decodes to type T. Usage examples:
R
T
PartCodec(RawBodyType.StringBody(StandardCharsets.UTF_8))[String] PartCodec(RawBodyType.StringBody(StandardCharsets.UTF_8))[Int] PartCodec(RawBodyType.ByteArrayBody)[Array[Byte]]
A codec between the a Part containing the raw data and the target type T must be available in the implicit scope.