TraitApplication

zio.blocks.smithy.TraitApplication
See theTraitApplication companion object
final case class TraitApplication(id: ShapeId, value: Option[NodeValue])

Represents a trait applied to a shape in Smithy.

A TraitApplication is the pairing of a trait ID (which identifies the trait) with an optional value (which provides configuration for the trait).

Value parameters

id

the ShapeId of the trait (e.g., "smithy.api#required")

value

the optional NodeValue configuration for this trait

Attributes

Companion
object
Source
TraitApplication.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala