Bool

zio.Config.Bool
case object Bool extends Primitive[Boolean]

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Config[Boolean]
class Object
trait Matchable
class Any
Show all
Self type
Bool.type

Members list

Type members

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton

Attributes

Inherited from:
Singleton

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

Attributes

Inherited from:
Singleton
type MirroredType = Singleton.this.type

Attributes

Inherited from:
Singleton

Value members

Concrete methods

final def parse(text: String): Either[Error, Boolean]

Inherited methods

def ++[B](that: => Config[B])(implicit zippable: Zippable[Boolean, B]): Config[Out]

Returns a new config that is the composition of this config and the specified config.

Returns a new config that is the composition of this config and the specified config.

Attributes

Inherited from:
Config
def ??(label: => String): Config[A]

Adds a description to this configuration, which is intended for humans.

Adds a description to this configuration, which is intended for humans.

Attributes

Inherited from:
Config
final def description: String

Attributes

Inherited from:
Primitive

Create a new instance of type T with elements taken from product p.

Create a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
def map[B](f: Boolean => B): Config[B]

Returns a new config whose structure is the same as this one, but which produces a different Scala value, constructed using the specified function.

Returns a new config whose structure is the same as this one, but which produces a different Scala value, constructed using the specified function.

Attributes

Inherited from:
Config
def mapAttempt[B](f: Boolean => B): Config[B]

Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified function, which may throw exceptions that will be translated into validation errors.

Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified function, which may throw exceptions that will be translated into validation errors.

Attributes

Inherited from:
Config
def mapOrFail[B](f: Boolean => Either[Error, B]): Config[B]

Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified fallible function.

Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified fallible function.

Attributes

Inherited from:
Config
final def missingError(name: String): Error

Attributes

Inherited from:
Primitive
def nested(name: => String, names: String*): Config[A]

Returns a new config that has this configuration nested as a property of the specified name.

Returns a new config that has this configuration nested as a property of the specified name.

Attributes

Inherited from:
Config
def nested(name: => String): Config[A]

Returns a new config that has this configuration nested as a property of the specified name.

Returns a new config that has this configuration nested as a property of the specified name.

Attributes

Inherited from:
Config

Returns an optional version of this config, which will be None if the data is missing from configuration, and Some otherwise.

Returns an optional version of this config, which will be None if the data is missing from configuration, and Some otherwise.

Attributes

Inherited from:
Config
def orElse[A1 >: Boolean](that: => Config[A1]): Config[A1]

A named version of ||.

A named version of ||.

Attributes

Inherited from:
Config
def orElseIf(condition: Error => Boolean): OrElse[A]

Returns configuration which reads from this configuration, but which falls back to the specified configuration if reading from this configuration fails with an error satisfying the specified predicate.

Returns configuration which reads from this configuration, but which falls back to the specified configuration if reading from this configuration fails with an error satisfying the specified predicate.

Attributes

Inherited from:
Config

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def repeat: Config[Chunk[A]]

Returns a new config that describes a sequence of values, each of which has the structure of this config.

Returns a new config that describes a sequence of values, each of which has the structure of this config.

Attributes

Inherited from:
Config
def switch[A1 >: Boolean, B](f: (A1, Config[B])*): Config[B]

Returns a new configuration which reads from this configuration and uses the resulting value to determine the configuration to read from.

Returns a new configuration which reads from this configuration and uses the resulting value to determine the configuration to read from.

Attributes

Inherited from:
Config
def validate(message: => String)(f: Boolean => Boolean): Config[A]

Returns a new config that describes the same structure as this one, but which performs validation during loading.

Returns a new config that describes the same structure as this one, but which performs validation during loading.

Attributes

Inherited from:
Config
def validateWith[B](message: => String)(pf: PartialFunction[Boolean, B]): Config[B]

Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified partial function, failing with the specified validation error if the partial function is not defined.

Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified partial function, failing with the specified validation error if the partial function is not defined.

Attributes

Inherited from:
Config
def withDefault[A1 >: Boolean](default: => A1): Config[A1]

Returns a new config that describes the same structure as this one, but has the specified default value in case the information cannot be found.

Returns a new config that describes the same structure as this one, but has the specified default value in case the information cannot be found.

Attributes

Inherited from:
Config
def zip[B](that: => Config[B])(implicit z: Zippable[Boolean, B]): Config[Out]

A named version of ++.

A named version of ++.

Attributes

Inherited from:
Config
def zipWith[B, C](that: => Config[B])(f: (Boolean, B) => C): Config[C]

Returns a new configuration that is the composition of this configuration and the specified configuration, combining their values using the function f.

Returns a new configuration that is the composition of this configuration and the specified configuration, combining their values using the function f.

Attributes

Inherited from:
Config
def ||[A1 >: Boolean](that: => Config[A1]): Config[A1]

Returns a config whose structure is preferentially described by this config, but which falls back to the specified config if there is an issue reading from this config.

Returns a config whose structure is preferentially described by this config, but which falls back to the specified config if there is an issue reading from this config.

Attributes

Inherited from:
Config