Packages

package dsl

Main object to import in order to use Chimney's features

Since

0.1.0

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. dsl
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final class CodecDefinition[Domain, Dto, EncodeOverrides <: TransformerOverrides, DecodeOverrides <: TransformerOverrides, Flags <: TransformerFlags] extends TransformerFlagsDsl[[Flags1]CodecDefinition[Domain, Dto, EncodeOverrides, DecodeOverrides, Flags1], Flags]

    Allows customization of io.scalaland.chimney.Codec derivation.

    Allows customization of io.scalaland.chimney.Codec derivation.

    Domain

    type of the domain value

    Dto

    typeof the DTO value

    EncodeOverrides

    type-level encoded config

    DecodeOverrides

    type-level encoded config

    Flags

    type-level encoded flags

    Since

    1.2.0

  2. sealed abstract class CollectionFallbackMergeStrategy extends AnyRef

    What should happen when both source value and fallback values are collections.

    What should happen when both source value and fallback values are collections.

    Since

    1.7.0

    See also

    https://chimney.readthedocs.io/supported-transformations/#merging-collection-with-collection-into-collection for more details

  3. sealed abstract class ImplicitTransformerPreference extends AnyRef

    Whether derivation should prefer total or partial transformers if both are provided for some field transformation.

    Whether derivation should prefer total or partial transformers if both are provided for some field transformation.

    Since

    0.7.0

    See also

    https://chimney.readthedocs.io/supported-transformations/#resolving-priority-of-implicit-total-vs-partial-transformers for more details

  4. final class IsoDefinition[First, Second, FirstOverrides <: TransformerOverrides, SecondOverrides <: TransformerOverrides, Flags <: TransformerFlags] extends TransformerFlagsDsl[[Flags1]IsoDefinition[First, Second, FirstOverrides, SecondOverrides, Flags1], Flags]

    Allows customization of io.scalaland.chimney.Iso derivation.

    Allows customization of io.scalaland.chimney.Iso derivation.

    First

    input type of the first conversion, output type of the second conversion

    Second

    output type of the first conversion, input type of the second conversion

    FirstOverrides

    type-level encoded config

    SecondOverrides

    type-level encoded config

    Flags

    type-level encoded flags

    Since

    1.2.0

  5. sealed abstract class OptionFallbackMergeStrategy extends AnyRef

    What should happen when both source value and fallback values are of the Option/Either type.

    What should happen when both source value and fallback values are of the Option/Either type.

    Since

    1.7.0

    See also

    https://chimney.readthedocs.io/supported-transformations/#merging-option-with-option-into-option for more details

    https://chimney.readthedocs.io/supported-transformations/#merging-either-with-either-into-either for more details

  6. final class PartialTransformerDefinition[From, To, Overrides <: TransformerOverrides, Flags <: TransformerFlags] extends TransformerFlagsDsl[[Flags1]PartialTransformerDefinition[From, To, Overrides, Flags1], Flags] with TransformerDefinitionCommons[[Overrides1]PartialTransformerDefinition[From, To, Overrides1, Flags]] with WithRuntimeDataStore

    Allows customization of io.scalaland.chimney.PartialTransformer derivation.

    Allows customization of io.scalaland.chimney.PartialTransformer derivation.

    From

    type of input value

    To

    type of output value

    Overrides

    type-level encoded config

    Flags

    type-level encoded flags

    Since

    0.7.0

  7. final class PartialTransformerInto[From, To, Overrides <: TransformerOverrides, Flags <: TransformerFlags] extends TransformerFlagsDsl[[Flags1]PartialTransformerInto[From, To, Overrides, Flags1], Flags] with WithRuntimeDataStore

    Provides DSL for configuring io.scalaland.chimney.PartialTransformer's generation and using the result to transform value at the same time

    Provides DSL for configuring io.scalaland.chimney.PartialTransformer's generation and using the result to transform value at the same time

    From

    type of input value

    To

    type of output value

    Overrides

    type-level encoded config

    Flags

    type-level encoded flags

    Since

    0.7.0

  8. implicit final class PartialTransformerOps[From] extends AnyVal

    Provides partial transformer operations on values of any type.

    Provides partial transformer operations on values of any type.

    From

    type of source value

    Since

    0.7.0

  9. final class PatcherConfiguration[Flags <: PatcherFlags] extends PatcherFlagsDsl[UpdateFlag, Flags]

    Type-level set of derivation flags that can be shared between derivations through implicit scope.

    Type-level set of derivation flags that can be shared between derivations through implicit scope.

    Flags

    type-level encoded flags

    Since

    0.8.0

    See also

    https://chimney.readthedocs.io/cookbook/#reusing-the-flags-for-several-transformationspatchings for more details

  10. final class PatcherDefinition[A, Patch, Overrides <: PatcherOverrides, Flags <: PatcherFlags] extends PatcherFlagsDsl[[Flags1]PatcherDefinition[A, Patch, Overrides, Flags1], Flags] with PatcherDefinitionCommons[[Overrides1]PatcherDefinition[A, Patch, Overrides1, Flags]] with WithRuntimeDataStore

    Allows customization of io.scalaland.chimney.Patcher derivation.

    Allows customization of io.scalaland.chimney.Patcher derivation.

    A

    type of object to apply patch to

    Patch

    type of patch object

    Overrides

    type-level encoded config

    Flags

    type-level encoded flags

    Since

    0.8.0

  11. implicit final class PatcherOps[A] extends AnyVal

    Provides patcher operations on values of any type

    Provides patcher operations on values of any type

    A

    type of object to patch

    Since

    0.1.3

  12. final class PatcherUsing[A, Patch, Overrides <: PatcherOverrides, Flags <: PatcherFlags] extends PatcherFlagsDsl[[Flags1]PatcherUsing[A, Patch, Overrides, Flags1], Flags] with WithRuntimeDataStore

    Provides operations to customize io.scalaland.chimney.Patcher logic for specific object value and patch value.

    Provides operations to customize io.scalaland.chimney.Patcher logic for specific object value and patch value.

    A

    type of object to apply patch to

    Patch

    type of patch object

    Overrides

    type-level encoded config

    Flags

    type-level encoded flags

    Since

    0.4.0

  13. abstract class TransformedNamesComparison extends AnyRef

    Provides a way of customizing how fields/subtypes shoud get matched betwen source value and target value.

    Provides a way of customizing how fields/subtypes shoud get matched betwen source value and target value.

    Since

    1.0.0

    See also

    https://chimney.readthedocs.io/supported-transformations/#defining-custom-name-matching-predicate for more details

  14. final class TransformerConfiguration[Flags <: TransformerFlags] extends TransformerFlagsDsl[UpdateFlag, Flags]

    Type-level set of derivation flags that can be shared between derivations through implicit scope.

    Type-level set of derivation flags that can be shared between derivations through implicit scope.

    Flags

    type-level encoded flags

    Since

    0.6.0

    See also

    https://chimney.readthedocs.io/cookbook/#reusing-the-flags-for-several-transformationspatchings for more details

  15. final class TransformerDefinition[From, To, Overrides <: TransformerOverrides, Flags <: TransformerFlags] extends TransformerFlagsDsl[[Flags1]TransformerDefinition[From, To, Overrides, Flags1], Flags] with TransformerDefinitionCommons[[Overrides1]TransformerDefinition[From, To, Overrides1, Flags]] with WithRuntimeDataStore

    Allows customization of io.scalaland.chimney.Transformer derivation.

    Allows customization of io.scalaland.chimney.Transformer derivation.

    From

    type of input value

    To

    type of output value

    Overrides

    type-level encoded config

    Flags

    type-level encoded flags

    Since

    0.4.0

  16. final class TransformerInto[From, To, Overrides <: TransformerOverrides, Flags <: TransformerFlags] extends TransformerFlagsDsl[[Flags1]TransformerInto[From, To, Overrides, Flags1], Flags] with WithRuntimeDataStore

    Provides DSL for configuring io.scalaland.chimney.Transformer's generation and using the result to transform value at the same time

    Provides DSL for configuring io.scalaland.chimney.Transformer's generation and using the result to transform value at the same time

    From

    type of input value

    To

    type of output value

    Overrides

    type-level encoded config

    Flags

    type-level encoded flags

    Since

    0.1.0

  17. implicit final class TransformerOps[From] extends AnyVal

    Provides transformer operations on values of any type.

    Provides transformer operations on values of any type.

    From

    type of source value

    Since

    0.4.0

  18. sealed abstract class UnmatchedSubtypePolicy extends AnyRef

    What should happen when derivation is dropping some target subtype without using it for anything.

    What should happen when derivation is dropping some target subtype without using it for anything.

    Since

    1.7.0

    See also

    https://chimney.readthedocs.io/cookbook/#checking-for-unused-source-fieldsunmatched-target-subtypes for more details

  19. sealed abstract class UnusedFieldPolicy extends AnyRef

    What should happen when derivation is dropping some source field without using it for anything.

    What should happen when derivation is dropping some source field without using it for anything.

    Since

    1.7.0

    See also

    https://chimney.readthedocs.io/cookbook/#checking-for-unused-source-fieldsunmatched-target-subtypes for more details

Value Members

  1. implicit def EitherStringPartialTransformerOps[A](either: Either[String, A]): EitherStringPartialTransformerOps[A]
  2. implicit def OptionPartialTransformerOps[A](option: Option[A]): OptionPartialTransformerOps[A]
  3. implicit def PartialTransformationOps[From](from: From): PartialTransformationOps[From]
  4. implicit def PatchingOps[A](obj: A): PatchingOps[A]
  5. implicit def TransformationCollectionPathOps[C[_], A](a: C[A]): TransformationCollectionPathOps[C, A]
  6. implicit def TransformationMapPathOps[M[_, _], K, V](a: M[K, V]): TransformationMapPathOps[M, K, V]
  7. implicit def TransformationMatchingPathOps[A](a: A): TransformationMatchingPathOps[A]
  8. implicit def TransformationOps[From](from: From): TransformationOps[From]
  9. implicit def TryPartialTransformerOps[A](try: Try[A]): TryPartialTransformerOps[A]
  10. case object FailOnIgnoredSourceVal extends UnusedFieldPolicy with Product with Serializable

    Tell the derivation that silent drop of a source field is an error (explicit drop is not).

    Tell the derivation that silent drop of a source field is an error (explicit drop is not).

    Since

    1.7.0

    See also

    https://chimney.readthedocs.io/cookbook/#checking-for-unused-source-fieldsunmatched-target-subtypes for more details

  11. case object FailOnUnmatchedTargetSubtype extends UnmatchedSubtypePolicy with Product with Serializable

    Tell the derivation that silent drop of a target subtype is an error (explicit drop is not).

    Tell the derivation that silent drop of a target subtype is an error (explicit drop is not).

    Since

    1.7.0

    See also

    https://chimney.readthedocs.io/cookbook/#checking-for-unused-source-fieldsunmatched-target-subtypes for more details

  12. case object FallbackAppendSource extends CollectionFallbackMergeStrategy with Product with Serializable

    When both source value and fallback values are collections they should be combined using fallback2 ++ fallback1 ++ src.

    When both source value and fallback values are collections they should be combined using fallback2 ++ fallback1 ++ src.

    Since

    1.7.0

    See also

    https://chimney.readthedocs.io/supported-transformations/#merging-collection-with-collection-into-collection for more details

  13. case object FallbackOrElseSource extends OptionFallbackMergeStrategy with Product with Serializable

    When both source value and fallback values are of the Option/Either type they should be combined using fallbck2.orElse(fallback1).orElse(src).

    When both source value and fallback values are of the Option/Either type they should be combined using fallbck2.orElse(fallback1).orElse(src).

    Since

    1.7.0

    See also

    https://chimney.readthedocs.io/supported-transformations/#merging-option-with-option-into-option for more details

    https://chimney.readthedocs.io/supported-transformations/#merging-either-with-either-into-either for more details

  14. object PatcherConfiguration

    Since

    0.8.0

  15. object PatcherDefinitionCommons
  16. object PatcherPatchedValueFlagsDsl
  17. case object PreferPartialTransformer extends ImplicitTransformerPreference with Product with Serializable

    Tell the derivation to prefer partial transformers.

    Tell the derivation to prefer partial transformers.

    Since

    0.7.0

    See also

    https://chimney.readthedocs.io/supported-transformations/#resolving-priority-of-implicit-total-vs-partial-transformers for more details

  18. case object PreferTotalTransformer extends ImplicitTransformerPreference with Product with Serializable

    Tell the derivation to prefer total transformers.

    Tell the derivation to prefer total transformers.

    Since

    0.7.0

    See also

    https://chimney.readthedocs.io/supported-transformations/#resolving-priority-of-implicit-total-vs-partial-transformers for more details

  19. case object SourceAppendFallback extends CollectionFallbackMergeStrategy with Product with Serializable

    When both source value and fallback values are collections they should be combined using src ++ fallback1 ++ fallback2 ....

    When both source value and fallback values are collections they should be combined using src ++ fallback1 ++ fallback2 ....

    Since

    1.7.0

    See also

    https://chimney.readthedocs.io/supported-transformations/#merging-collection-with-collection-into-collection for more details

  20. case object SourceOrElseFallback extends OptionFallbackMergeStrategy with Product with Serializable

    When both source value and fallback values are of the Option/Either type they should be combined using src.orElse(fallback1).orElse(fallback2)....

    When both source value and fallback values are of the Option/Either type they should be combined using src.orElse(fallback1).orElse(fallback2)....

    Since

    1.7.0

    See also

    https://chimney.readthedocs.io/supported-transformations/#merging-option-with-option-into-option for more details

    https://chimney.readthedocs.io/supported-transformations/#merging-either-with-either-into-either for more details

  21. object TransformedNamesComparison

    Since

    1.0.0

  22. object TransformerConfiguration

    Since

    0.6.0

  23. object TransformerDefinitionCommons
  24. object TransformerSourceFlagsDsl
  25. object TransformerTargetFlagsDsl

Inherited from AnyRef

Inherited from Any

Ungrouped