Trait

smithy.api.Trait
See theTrait companion object
case class Trait(selector: Option[String], structurallyExclusive: Option[StructurallyExclusive], conflicts: Option[List[NonEmptyString]], breakingChanges: Option[List[TraitDiffRule]])

Makes a shape a trait.

Attributes

breakingChanges

Defines the backward compatibility rules of the trait.

conflicts

The traits that this trait conflicts with.

selector

The valid places in a model that the trait can be applied.

structurallyExclusive

Whether or not only a single member in a shape can have this trait.

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product