Auto

caliban.schema.ArgBuilderDerivation.Auto
See theAuto companion object
sealed trait Auto[A] extends ArgBuilder[A]

Attributes

Companion
object
Graph
Supertypes
trait ArgBuilder[A]
class Object
trait Matchable
class Any

Members list

Value members

Inherited methods

def build(input: InputValue): Either[ExecutionError, T]

Builds a value of type T from an input caliban.InputValue. Fails with an caliban.CalibanError.ExecutionError if it was impossible to build the value.

Builds a value of type T from an input caliban.InputValue. Fails with an caliban.CalibanError.ExecutionError if it was impossible to build the value.

Attributes

Inherited from:
ArgBuilder
def buildMissing(default: Option[String]): Either[ExecutionError, T]

Builds a value of type T from a missing input value. By default, this delegates to build, passing it NullValue. Fails with an caliban.CalibanError.ExecutionError if it was impossible to build the value.

Builds a value of type T from a missing input value. By default, this delegates to build, passing it NullValue. Fails with an caliban.CalibanError.ExecutionError if it was impossible to build the value.

Attributes

Inherited from:
ArgBuilder
def flatMap[A](f: A => Either[ExecutionError, A]): ArgBuilder[A]

Builds a new ArgBuilder of A from an existing ArgBuilder of T and a function from T to Either[ExecutionError, A].

Builds a new ArgBuilder of A from an existing ArgBuilder of T and a function from T to Either[ExecutionError, A].

Value parameters

f

a function from T to Either[ExecutionError, A]

Attributes

Inherited from:
ArgBuilder
def map[A](f: A => A): ArgBuilder[A]

Builds a new ArgBuilder of A from an existing ArgBuilder of T and a function from T to A.

Builds a new ArgBuilder of A from an existing ArgBuilder of T and a function from T to A.

Value parameters

f

a function from T to A.

Attributes

Inherited from:
ArgBuilder
def orElse(fallback: ArgBuilder[A]): ArgBuilder[T]

Builds a new ArgBuilder of T from two ArgBuilders of T where the second ArgBuilder is a fallback if the first one fails In the case that both fail, the error from the second will be returned

Builds a new ArgBuilder of T from two ArgBuilders of T where the second ArgBuilder is a fallback if the first one fails In the case that both fail, the error from the second will be returned

Value parameters

fallback

The alternative ArgBuilder if this one fails

Attributes

Inherited from:
ArgBuilder
def ||(fallback: ArgBuilder[A]): ArgBuilder[T]

Attributes

See also
Inherited from:
ArgBuilder

Givens

Givens

inline given genAuto[T](using NotGiven[ArgBuilder[T]]): ArgBuilder[T]