ValidatingCompanion

com.malliina.values.ValidatingCompanion
abstract class ValidatingCompanion[Raw, T](implicit d: Decoder[Raw], e: Encoder[Raw], o: Ordering[Raw])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object FullUrl.type
class EnumCompanion[Raw, T]
class JsonEnumSet[T]
class WrappedEnum[T]
class JsonCompanion[Raw, T]
class IdCompanion[T]
object UserId.type
class IdentCompanion[T]
class StringCompanion[T]
object AccessToken.type
object Email.type
object ErrorMessage.type
object IdToken.type
object Password.type
object RefreshToken.type
object UnixPath.type
object Username.type
Show all

Members list

Value members

Abstract methods

def build(input: Raw): Either[ErrorMessage, T]
def write(t: T): Raw

Concrete methods

def defaultError(in: Raw): ErrorMessage

Implicits

Implicits

implicit val json: Codec[T]
implicit val ordering: Ordering[T]