TransformerIntoForAll

io.scalaland.chimney.dsl.TransformerIntoForAll
final class TransformerIntoForAll[From, To, Overrides <: TransformerOverrides, Flags <: TransformerFlags, FromMatch, ToMatch](val source: From, val td: TransformerDefinition[From, To, Overrides, Flags]) extends WithRuntimeDataStore

Scoped builder for defining overrides that apply to all matching [FromMatch, ToMatch] derivations, used with .into[To] syntax.

Attributes

Since

1.10.0

Graph
Supertypes
trait WithRuntimeDataStore
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

transparent inline def withFieldComputed[T, U](inline selector: ToMatch => T, inline f: FromMatch => U)(using U <:< T): TransformerInto[From, To, _ <: TransformerOverrides, Flags]

Use the function f to compute the value of the field picked using selector.

Use the function f to compute the value of the field picked using selector.

Attributes

Since

1.10.0

transparent inline def withFieldConst[T, U](inline selector: ToMatch => T, inline value: U)(using U <:< T): TransformerInto[From, To, _ <: TransformerOverrides, Flags]

Use the value provided here for the field picked using selector.

Use the value provided here for the field picked using selector.

Attributes

Since

1.10.0

transparent inline def withFieldRenamed[T, U](inline selectorFrom: FromMatch => T, inline selectorTo: ToMatch => U): TransformerInto[From, To, _ <: TransformerOverrides, Flags]

Use the selectorFrom field in FromMatch to obtain the value of the selectorTo field in ToMatch.

Use the selectorFrom field in FromMatch to obtain the value of the selectorTo field in ToMatch.

Attributes

Since

1.10.0

Concrete fields

val source: From
val td: TransformerDefinition[From, To, Overrides, Flags]