PatcherDefinition
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
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Build Patcher using current configuration.
Build Patcher using current configuration.
It runs macro that tries to derive instance of Patcher[A, Patch]
. When transformation can't be derived, it results with compilation error.
Attributes
- Returns
-
io.scalaland.chimney.Patcher type class instance
- Since
-
0.8.0
Inherited methods
Then there scala.Option is patching scala.Option, on scala.None value will be cleared.
Then there scala.Option is patching scala.Option, on scala.None value will be cleared.
Attributes
- Returns
- See also
- Since
-
0.8.0
- Inherited from:
- PatcherFlagsDsl (hidden)
Disable printing the logs from the derivation process.
Disable printing the logs from the derivation process.
Attributes
- See also
-
https://chimney.readthedocs.io/troubleshooting/#debugging-macros for more details
- Since
-
0.8.0
- Inherited from:
- PatcherFlagsDsl (hidden)
Enable printing the logs from the derivation process.
Enable printing the logs from the derivation process.
Attributes
- See also
-
https://chimney.readthedocs.io/troubleshooting/#debugging-macros for more details
- Since
-
0.8.0
- Inherited from:
- PatcherFlagsDsl (hidden)
Fail the compilation if there is a redundant field in patching object.
Fail the compilation if there is a redundant field in patching object.
Attributes
- Returns
- See also
- Since
-
0.8.0
- Inherited from:
- PatcherFlagsDsl (hidden)
In case when both object to patch and patch value contain field of type scala.Option, this option allows to treat scala.None value in patch as if the value was not provided.
In case when both object to patch and patch value contain field of type scala.Option, this option allows to treat scala.None value in patch as if the value was not provided.
By default, when scala.None is delivered in patch, Chimney clears the value of such field on patching.
Attributes
- Returns
- See also
- Since
-
0.4.0
- Inherited from:
- PatcherFlagsDsl (hidden)
In case that patch object contains a redundant field (i.e. field that is not present in patched object type), this option enables ignoring value of such fields and generate patch successfully.
In case that patch object contains a redundant field (i.e. field that is not present in patched object type), this option enables ignoring value of such fields and generate patch successfully.
By default, when Chimney detects a redundant field in patch object, it fails the compilation in order to prevent silent oversight of field name typos.
Attributes
- Returns
- See also
- Since
-
0.4.0
- Inherited from:
- PatcherFlagsDsl (hidden)