DeriveConfig

zio.config.magnolia.DeriveConfig
See theDeriveConfig companion class
object DeriveConfig

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class CoproductName(originalName: String, alternativeNames: List[String], descriptions: List[String], typeDiscriminator: Option[String])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class FieldName(originalName: String, alternativeNames: List[String], descriptions: List[String])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Metadata

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Metadata.type
sealed trait Metadata

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Coproduct
class Object[T]
class Product
final case class ProductName(originalName: String, alternativeNames: List[String], descriptions: List[String])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def addDefaultValues(defaultValues: Map[String, Any], fieldNames: List[String], descriptors: List[DeriveConfig[Any]]): List[DeriveConfig[_]]
def apply[A](implicit ev: DeriveConfig[A]): DeriveConfig[A]
def castTo[T](a: Any): T
inline def customFieldNamesOf[T]: Map[String, name]
inline def customNamesOf[T]: List[String]
def from[A](desc: Config[A]): DeriveConfig[A]
inline def labelsOf[T <: Tuple]: List[String]
def mergeAllFields[T](allDescs: => List[DeriveConfig[_]], productName: ProductName, fieldNames: List[FieldName], f: (List[Any]) => T): DeriveConfig[T]
def mergeAllProducts[T](allDescs: => List[DeriveConfig[T]], typeDiscriminator: Option[String]): DeriveConfig[T]
def tryAllKeys[A](desc: Config[A], originalKey: Option[String], alternativeKeys: List[String]): Config[A]

Deprecated methods

def mergeAllFields[T](allDescs: => List[DeriveConfig[_]], productName: ProductName, fieldNames: => List[FieldName], f: (List[Any]) => T, g: T => List[Any]): DeriveConfig[T]

Attributes

Deprecated
true

Givens

Givens

given chunkDesc[A](using ev: DeriveConfig[A]): DeriveConfig[Chunk[A]]
inline given derived[T](using m: Of[T]): DeriveConfig[T]
given eitherConfig[A, B](using evA: DeriveConfig[A], evB: DeriveConfig[B]): DeriveConfig[Either[A, B]]
given listDesc[A](using ev: DeriveConfig[A]): DeriveConfig[List[A]]
given mapDesc[A](using ev: DeriveConfig[A]): DeriveConfig[Map[String, A]]
given optDesc[A](using ev: DeriveConfig[A]): DeriveConfig[Option[A]]
given seqDesc[A](using ev: DeriveConfig[A]): DeriveConfig[Seq[A]]
given setDesc[A](using ev: DeriveConfig[A]): DeriveConfig[Set[A]]
given vectorDesc[A](using ev: DeriveConfig[A]): DeriveConfig[Vector[A]]