ConfigDecoder

zio.blocks.config.ConfigDecoder
See theConfigDecoder companion trait
object ConfigDecoder

Attributes

Companion
trait
Source
ConfigDecoder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[A](implicit decoder: ConfigDecoder[A]): ConfigDecoder[A]

Attributes

Source
ConfigDecoder.scala
def derive[A](implicit schema: Schema[A]): ConfigDecoder[A]

Derive a ConfigDecoder[A] from a Schema[A] using the default ConfigDecoderDeriver.

Derive a ConfigDecoder[A] from a Schema[A] using the default ConfigDecoderDeriver.

For one-off loads, calling this at the use site is fine. If you decode the same type repeatedly, derive once at startup and reuse the returned decoder.

Attributes

Source
ConfigDecoder.scala