Given a ConfigValue
for the sealed family, disambiguate and extract the ConfigValue
associated to the
implementation for the given class or coproduct option name.
Given a ConfigValue
for the sealed family, disambiguate and extract the ConfigValue
associated to the
implementation for the given class or coproduct option name.
If cv
is a config for the given class name, this method returns Right(Some(v))
, where v
is the config
related to the specific class (possibly the same as cv
). If it determines that cv
is a config for a different
class, it returns Right(None)
. If cv
is missing information for disambiguation or has a wrong type, a
Left
containing a Failure
is returned.
the ConfigValue
of the sealed family
the name of the class or coproduct option to try
a Either[ConfigReaderFailure, Option[ConfigValue]]
as defined above.
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig
Given the ConfigValue
for a specific class or coproduct option, encode disambiguation information and return a
config for the sealed family or coproduct.
Given the ConfigValue
for a specific class or coproduct option, encode disambiguation information and return a
config for the sealed family or coproduct.
the ConfigValue
of the class or coproduct option
the name of the class or coproduct option
the config for the sealed family or coproduct wrapped in a Right
, or a Left
with the failure if some error
occurred.
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig
Defines what to do if from
returns Success(Some(_))
for a class or coproduct option, but its ConfigConvert
fails to deserialize the config.
Defines what to do if from
returns Success(Some(_))
for a class or coproduct option, but its ConfigConvert
fails to deserialize the config.
the name of the class or coproduct option
true
if the next class or coproduct option should be tried, false
otherwise.
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig
A trait that can be implemented to disambiguate between the different options of a coproduct or sealed family.
the type of the coproduct or sealed family for which this hint applies
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig