zio.blocks.schema.bson.BsonSchemaCodec.SumTypeHandling
See theSumTypeHandling companion trait
object SumTypeHandling
Attributes
- Companion
- trait
- Source
- BsonSchemaCodec.scala
- Graph
-
- Supertypes
- Self type
-
SumTypeHandling.type
Members list
Type members
Classlikes
final case class DiscriminatorField(name: String) extends SumTypeHandling
Discriminator field approach:
Discriminator field approach:
Attributes
- Source
- BsonSchemaCodec.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SumTypeHandlingclass Objecttrait Matchableclass AnyShow all
case object NoDiscriminator extends SumTypeHandling
No discriminator - encodes variant directly without wrapper or
No discriminator - encodes variant directly without wrapper or
Attributes
- Source
- BsonSchemaCodec.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait SumTypeHandlingclass Objecttrait Matchableclass AnyShow all
- Self type
-
NoDiscriminator.type
case object WrapperWithClassNameField extends SumTypeHandling
Wrapper with class name as field:
Wrapper with class name as field:
Attributes
- Source
- BsonSchemaCodec.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait SumTypeHandlingclass Objecttrait Matchableclass AnyShow all
- Self type
Inherited and Abstract types
The names of the product elements.
The name of the type.
In this article