io.scalaland.chimney.dsl
Members list
Type members
Classlikes
Allows customization of io.scalaland.chimney.Codec derivation.
Allows customization of io.scalaland.chimney.Codec derivation.
Type parameters
- DecodeOverrides
-
type-level encoded config
- Domain
-
type of the domain value
- Dto
-
typeof the DTO value
- EncodeOverrides
-
type-level encoded config
- Flags
-
type-level encoded flags
Attributes
- Since
-
1.2.0
- Supertypes
-
class Objecttrait Matchableclass Any
What should happen when both source value and fallback values are collections.
What should happen when both source value and fallback values are collections.
Attributes
- See also
- Since
-
1.7.0
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object FallbackAppendSourceobject SourceAppendFallback
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).
Attributes
- See also
- Since
-
1.7.0
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass UnusedFieldPolicyclass Objecttrait Matchableclass AnyShow all
- Self type
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).
Attributes
- See also
- Since
-
1.7.0
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass UnmatchedSubtypePolicyclass Objecttrait Matchableclass AnyShow all
- Self type
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.
Attributes
- See also
- Since
-
1.7.0
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
-
FallbackAppendSource.type
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).
Attributes
- See also
- Since
-
1.7.0
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
-
FallbackOrElseSource.type
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.
Attributes
- See also
- Since
-
0.7.0
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object PreferPartialTransformerobject PreferTotalTransformer
Allows customization of io.scalaland.chimney.Iso derivation.
Allows customization of io.scalaland.chimney.Iso derivation.
Type parameters
- First
-
input type of the first conversion, output type of the second conversion
- FirstOverrides
-
type-level encoded config
- Flags
-
type-level encoded flags
- Second
-
output type of the first conversion, input type of the second conversion
- SecondOverrides
-
type-level encoded config
Attributes
- Since
-
1.2.0
- Supertypes
-
class Objecttrait Matchableclass Any
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.
Attributes
- See also
- Since
-
1.7.0
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object FallbackOrElseSourceobject SourceOrElseFallback
Allows customization of io.scalaland.chimney.PartialTransformer derivation.
Allows customization of io.scalaland.chimney.PartialTransformer derivation.
Type parameters
- Flags
-
type-level encoded flags
- From
-
type of input value
- Overrides
-
type-level encoded config
- To
-
type of output value
Attributes
- Since
-
0.7.0
- Supertypes
-
trait WithRuntimeDataStoreclass Objecttrait Matchableclass Any
Scoped builder for defining overrides that apply to all matching [FromMatch, ToMatch] derivations.
Scoped builder for defining overrides that apply to all matching [FromMatch, ToMatch] derivations.
Type parameters
- Flags
-
type-level encoded flags
- From
-
type of top-level input value
- FromMatch
-
source type to match in recursive derivations
- Overrides
-
type-level encoded config
- To
-
type of top-level output value
- ToMatch
-
target type to match in recursive derivations
Attributes
- Since
-
1.10.0
- Supertypes
-
trait WithRuntimeDataStoreclass Objecttrait Matchableclass Any
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
Type parameters
- Flags
-
type-level encoded flags
- From
-
type of input value
- Overrides
-
type-level encoded config
- To
-
type of output value
Value parameters
- source
-
object to transform
- td
-
transformer definition
Attributes
- Since
-
0.7.0
- Supertypes
-
trait WithRuntimeDataStoreclass Objecttrait Matchableclass Any
Scoped builder for defining overrides that apply to all matching [FromMatch, ToMatch] derivations, used with .intoPartial[To] syntax.
Scoped builder for defining overrides that apply to all matching [FromMatch, ToMatch] derivations, used with .intoPartial[To] syntax.
Attributes
- Since
-
1.10.0
- Supertypes
-
trait WithRuntimeDataStoreclass Objecttrait Matchableclass Any
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.
Type parameters
- Flags
-
type-level encoded flags
Attributes
- See also
- Since
-
0.8.0
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Since
-
0.8.0
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PatcherConfiguration.type
Allows customization of io.scalaland.chimney.Patcher derivation.
Allows customization of io.scalaland.chimney.Patcher derivation.
Type parameters
- A
-
type of object to apply patch to
- Flags
-
type-level encoded flags
- Overrides
-
type-level encoded config
- Patch
-
type of patch object
Attributes
- Since
-
0.8.0
- Supertypes
-
trait WithRuntimeDataStoreclass Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
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.
Type parameters
- A
-
type of object to apply patch to
- Flags
-
type-level encoded flags
- Overrides
-
type-level encoded config
- Patch
-
type of patch object
Value parameters
- obj
-
object to patch
- objPatch
-
patch object
- pd
-
patcher definition
Attributes
- Since
-
0.4.0
- Supertypes
-
trait WithRuntimeDataStoreclass Objecttrait Matchableclass Any
Tell the derivation to prefer partial transformers.
Tell the derivation to prefer partial transformers.
Attributes
- See also
- Since
-
0.7.0
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
Tell the derivation to prefer total transformers.
Tell the derivation to prefer total transformers.
Attributes
- See also
- Since
-
0.7.0
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
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 ....
Attributes
- See also
- Since
-
1.7.0
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
-
SourceAppendFallback.type
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)....
Attributes
- See also
- Since
-
1.7.0
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
-
SourceOrElseFallback.type
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.
Attributes
- See also
- Since
-
1.0.0
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
- Self type
-
Singleton
Attributes
- Since
-
1.0.0
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
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.
Type parameters
- Flags
-
type-level encoded flags
Attributes
- See also
- Since
-
0.6.0
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Since
-
0.6.0
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Allows customization of io.scalaland.chimney.Transformer derivation.
Allows customization of io.scalaland.chimney.Transformer derivation.
Type parameters
- Flags
-
type-level encoded flags
- From
-
type of input value
- Overrides
-
type-level encoded config
- To
-
type of output value
Attributes
- Since
-
0.4.0
- Supertypes
-
trait WithRuntimeDataStoreclass Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Scoped builder for defining overrides that apply to all matching [FromMatch, ToMatch] derivations.
Scoped builder for defining overrides that apply to all matching [FromMatch, ToMatch] derivations.
Type parameters
- Flags
-
type-level encoded flags
- From
-
type of top-level input value
- FromMatch
-
source type to match in recursive derivations
- Overrides
-
type-level encoded config
- To
-
type of top-level output value
- ToMatch
-
target type to match in recursive derivations
Attributes
- Since
-
1.10.0
- Supertypes
-
trait WithRuntimeDataStoreclass Objecttrait Matchableclass Any
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
Type parameters
- Flags
-
type-level encoded flags
- From
-
type of input value
- Overrides
-
type-level encoded config
- To
-
type of output value
Value parameters
- source
-
object to transform
- td
-
transformer definition
Attributes
- Since
-
0.1.0
- Supertypes
-
trait WithRuntimeDataStoreclass Objecttrait Matchableclass Any
Scoped builder for defining overrides that apply to all matching [FromMatch, ToMatch] derivations, used with .into[To] syntax.
Scoped builder for defining overrides that apply to all matching [FromMatch, ToMatch] derivations, used with .into[To] syntax.
Attributes
- Since
-
1.10.0
- Supertypes
-
trait WithRuntimeDataStoreclass Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
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.
Attributes
- See also
- Since
-
1.7.0
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object FailOnUnmatchedTargetSubtype
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.
Attributes
- See also
- Since
-
1.7.0
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object FailOnIgnoredSourceVal
Extensions
Extensions
Performs in-place patching of wrapped object with provided value.
Performs in-place patching of wrapped object with provided value.
If you want to customize patching behavior, consider using using method.
Type parameters
- Patch
-
type of patch object
Value parameters
- patch
-
patch object value
- patcher
-
implicit instance of io.scalaland.chimney.Patcher type class
Attributes
- Returns
-
patched value
- See also
-
io.scalaland.chimney.Patcher#deriveAutomatic for default implicit instance
- Since
-
0.4.0
Performs in-place transformation of captured source value to target type.
Performs in-place transformation of captured source value to target type.
If you want to customize transformer behavior, consider using io.scalaland.chimney.dsl.TransformerOps#into method.
Type parameters
- To
-
target type
Value parameters
- transformer
-
implicit instance of io.scalaland.chimney.Transformer type class
Attributes
- Returns
-
transformed value of target type
To - See also
-
io.scalaland.chimney.Transformer.AutoDerived#deriveAutomatic for default implicit instance
- Since
-
0.1.0
Performs in-place partial transformation of captured source value to target type.
Performs in-place partial transformation of captured source value to target type.
If you want to customize transformer behavior, consider using io.scalaland.chimney.dsl.PartialTransformerOps#intoPartial method.
Type parameters
- To
-
result target type of partial transformation
Value parameters
- transformer
-
implicit instance of io.scalaland.chimney.Transformer type class
Attributes
- Returns
-
partial transformation result value of target type
To - See also
-
io.scalaland.chimney.PartialTransformer#deriveAutomatic for default implicit instance
- Since
-
0.7.0
Performs in-place partial transformation of captured source value to target type.
Performs in-place partial transformation of captured source value to target type.
If you want to customize transformer behavior, consider using io.scalaland.chimney.dsl.PartialTransformerOps#intoPartial method.
Type parameters
- To
-
result target type of partial transformation
Value parameters
- failFast
-
should fail as early as the first set of errors appear
- transformer
-
implicit instance of io.scalaland.chimney.Transformer type class
Attributes
- Returns
-
partial transformation result value of target type
To - See also
-
io.scalaland.chimney.PartialTransformer#deriveAutomatic for default implicit instance
- Since
-
0.7.0