Decoder

io.github.srs.config.yaml.parser.Decoder
See theDecoder companion object
trait Decoder[A]

A trait for decoding configuration values from a map. It provides methods to decode various types of values, such as Int, Long, Double, Boolean, String and List.

Type parameters

A

the type of value to decode

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def decode(field: String, value: Any): ConfigResult[A]

Decodes a value from the given field in a configuration map.

Decodes a value from the given field in a configuration map.

Value parameters

field

the name of the field to decode

value

the value to decode

Attributes

Returns

a ConfigResult containing either the decoded value or a sequence of configuration errors