Vendor dependencies

This commit is contained in:
dwrz
2026-10-24 02:44:51 +00:00
parent ffb1e9a952
commit a577d3ff2d
1214 changed files with 315519 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
package smithy
// Trait represents a trait applied to a shape in a Smithy model. Traits
// related to (de)serialization are included in code-generated Schemas for the
// client.
type Trait interface {
TraitID() ShapeID
}
// IndexableTrait is optionally implemented by Trait values that have a
// reserved index in Schema's indexed trait slice. All traits defined in the
// traits package implement this interface.
//
// You SHOULD NOT implement this outside of a smithy-go trait unless you know
// what you are doing. If you implement this and return a value that collides
// with one of the primary serde-based indexed traits (see index.go) you will
// probably break something.
type IndexableTrait interface {
Trait
TraitIndex() int
}