Mapping

object Mapping
Companion:
class
class Object
trait Matchable
class Any
Mapping.type

Value members

Concrete methods

def from[L, H](f: L => H)(g: H => L): Mapping[L, H]
def fromDecode[L, H](f: L => DecodeResult[H])(g: H => L): Mapping[L, H]
def id[L]: Mapping[L, L]
def stringPrefixCaseInsensitive(prefix: String): Mapping[String, String]

A mapping which, during encoding, adds the given prefix. When decoding, the prefix is removed (case insensitive,if present), otherwise an error is reported.

A mapping which, during encoding, adds the given prefix. When decoding, the prefix is removed (case insensitive,if present), otherwise an error is reported.

def stringPrefixCaseInsensitiveForList(prefix: String): Mapping[List[String], List[String]]