object ConfigDecoder
- Source
- ConfigDecoder.scala
- Grouped
- Alphabetic
- By Inheritance
- ConfigDecoder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Creating Instances
- final def apply[A, B](implicit decoder: ConfigDecoder[A, B]): ConfigDecoder[A, B]
Returns a ConfigDecoder instance between the two specified types if an instance is available.
- final def apply[A]: ConfigDecoder[A, A]
Returns a new ConfigDecoder for the specified type without performing any kind of decoding.
Returns a new ConfigDecoder for the specified type without performing any kind of decoding. Alias for the ConfigDecoder.identity function.
- final def identity[A]: ConfigDecoder[A, A]
Returns a new ConfigDecoder for the specified type without performing any kind of decoding.
- final def instance[A, B](decode: (Option[ConfigKey], A) => Either[ConfigError, B]): ConfigDecoder[A, B]
Returns a new ConfigDecoder which decodes values using the specified function, with access to the key.
Returns a new ConfigDecoder which decodes values using the specified function, with access to the key.
If the decode function does not need access to the key, then we can use ConfigDecoder.lift instead.
- final def lift[A, B](decode: (A) => Either[ConfigError, B]): ConfigDecoder[A, B]
Returns a new ConfigDecoder which decodes values using the specified function.
Returns a new ConfigDecoder which decodes values using the specified function.
If the decode function needs access to the key, then we can use ConfigDecoder.instance instead.
Decoder Instances
- implicit final def identityConfigDecoder[A]: ConfigDecoder[A, A]
- implicit final def secretConfigDecoder[A, B](implicit decoder: ConfigDecoder[A, B]): ConfigDecoder[Secret[A], B]
- implicit final val stringBigDecimalConfigDecoder: ConfigDecoder[String, BigDecimal]
- implicit final val stringBigIntConfigDecoder: ConfigDecoder[String, BigInt]
- implicit final val stringBooleanConfigDecoder: ConfigDecoder[String, Boolean]
- implicit final val stringByteConfigDecoder: ConfigDecoder[String, Byte]
- implicit final val stringCharConfigDecoder: ConfigDecoder[String, Char]
- implicit final val stringDoubleConfigDecoder: ConfigDecoder[String, Double]
- implicit final val stringDurationConfigDecoder: ConfigDecoder[String, Duration]
- implicit final val stringFiniteDurationConfigDecoder: ConfigDecoder[String, FiniteDuration]
- implicit final val stringFloatConfigDecoder: ConfigDecoder[String, Float]
- implicit final val stringIntConfigDecoder: ConfigDecoder[String, Int]
- implicit final val stringLongConfigDecoder: ConfigDecoder[String, Long]
- implicit final val stringShortConfigDecoder: ConfigDecoder[String, Short]
- implicit final def toSecretConfigDecoder[A, B](implicit decoder: ConfigDecoder[A, B], show: Show[B]): ConfigDecoder[A, Secret[B]]
Type Class Instances
- implicit final def configDecoderContravariant[B]: Contravariant[[α$0$]ConfigDecoder[α$0$, B]]
- implicit final def configDecoderMonadError[A]: MonadError[[β$2$]ConfigDecoder[A, β$2$], ConfigError]