UnionShape
zio.blocks.smithy.UnionShape
final case class UnionShape(name: String, traits: List[TraitApplication] = ..., members: List[MemberDefinition] = ...) extends Shape
A union shape representing a tagged union of named members.
Value parameters
- members
-
the member definitions (exactly one is set at any time)
- name
-
the shape name
- traits
-
the traits applied to this shape
Attributes
- Source
- Shape.scala
- Graph
-
- Supertypes
Members list
In this article