Trait

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

Makes a shape a trait.

Value parameters

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.

Attributes

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

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product