TransformOrFail

oxygen.http.core.BodyCodec.Json.TransformOrFail
final case class TransformOrFail[A, B](a: Json[A], ab: A => Either[String, B], ba: B => A) extends Json[B]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Json[B]
trait Text[B]
trait BodyCodec[B]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def decodeText(body: Text): Either[Cause, B]

Attributes

Definition Classes
override def encodeText(value: B): Text

Attributes

Definition Classes

Inherited methods

final override def decode(body: HttpBody): ZIO[Scope, Cause, B]

Attributes

Definition Classes
Inherited from:
Text
final override def encode(value: B): HttpBody

Attributes

Definition Classes
Inherited from:
Text
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final override def transform[B](ab: B => B, ba: B => B): Json[B]

Attributes

Definition Classes
Inherited from:
Json
final override def transformOrFail[B](ab: B => Either[String, B], ba: B => B): Json[B]

Attributes

Definition Classes
Inherited from:
Json