io.scalaland.chimney.partial

Members list

Type members

Classlikes

@FunctionalInterface
trait AsResult[F[_]]

Utility allowing conversion from some type into io.scalaland.chimney.partial.Result.

Utility allowing conversion from some type into io.scalaland.chimney.partial.Result.

Should define logic what is considered successful value, what is considered failed value and how to convert it into io.scalaland.chimney.partial.Result.

Type parameters

F

generic data type which should be convertible to Result for all possible values

Attributes

See also
Since

0.8.5

Companion
object
Supertypes
class Object
trait Matchable
class Any
object AsResult

Attributes

Since

0.8.5

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
AsResult.type
final case class Error(message: ErrorMessage, path: Path = ...)

Data structure for representing path-annotated error

Data structure for representing path-annotated error

Value parameters

message

error message

path

error path annotation

Attributes

Since

0.7.0

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Error

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Error.type
sealed trait ErrorMessage

Representation of partial transformation error message

Representation of partial transformation error message

Attributes

Since

0.7.0

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ErrorMessage

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class Path(elements: List[PathElement]) extends AnyVal

Data structure for representing path in a (possibly) nested object structure.

Data structure for representing path in a (possibly) nested object structure.

Value parameters

elements

list of path elements

Attributes

Since

0.7.0

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class AnyVal
trait Matchable
class Any
Show all
object Path

Attributes

Since

0.7.0

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Path.type
sealed trait PathElement

Data type for representing path element in a (possibly) nested object structure.

Data type for representing path element in a (possibly) nested object structure.

Attributes

See also
Since

0.7.0

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Accessor
class Computed
class Const
class Index
class MapKey
class MapValue
Show all
object PathElement

Attributes

See also
Since

0.7.0

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait Result[+A]

Data type representing either successfully computed value or non-empty collection of path-annotated errors.

Data type representing either successfully computed value or non-empty collection of path-annotated errors.

Type parameters

A

type of success value

Attributes

See also
Since

0.7.0

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Errors
class Value[A]
object Result

Attributes

See also
Since

0.7.0

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Result.type