serde.go (1744B)
1 package traits 2 3 import smithy "github.com/aws/smithy-go" 4 5 // JSONName represents smithy.api#jsonName. 6 type JSONName struct { 7 Name string 8 } 9 10 // TraitID identifies the trait. 11 func (*JSONName) TraitID() smithy.ShapeID { 12 return smithy.ShapeID{Namespace: "smithy.api", Name: "jsonName"} 13 } 14 15 // MediaType represents smithy.api#mediaType. 16 type MediaType struct { 17 Type string 18 } 19 20 // TraitID identifies the trait. 21 func (*MediaType) TraitID() smithy.ShapeID { 22 return smithy.ShapeID{Namespace: "smithy.api", Name: "mediaType"} 23 } 24 25 // TimestampFormat represents smithy.api#timestampFormat. 26 type TimestampFormat struct { 27 Format string 28 } 29 30 // TraitID identifies the trait. 31 func (*TimestampFormat) TraitID() smithy.ShapeID { 32 return smithy.ShapeID{Namespace: "smithy.api", Name: "timestampFormat"} 33 } 34 35 // XMLAttribute represents smithy.api#xmlAttribute. 36 type XMLAttribute struct{} 37 38 // TraitID identifies the trait. 39 func (*XMLAttribute) TraitID() smithy.ShapeID { 40 return smithy.ShapeID{Namespace: "smithy.api", Name: "xmlAttribute"} 41 } 42 43 // XMLFlattened represents smithy.api#xmlFlattened. 44 type XMLFlattened struct{} 45 46 // TraitID identifies the trait. 47 func (*XMLFlattened) TraitID() smithy.ShapeID { 48 return smithy.ShapeID{Namespace: "smithy.api", Name: "xmlFlattened"} 49 } 50 51 // XMLName represents smithy.api#xmlName. 52 type XMLName struct { 53 Name string 54 } 55 56 // TraitID identifies the trait. 57 func (*XMLName) TraitID() smithy.ShapeID { 58 return smithy.ShapeID{Namespace: "smithy.api", Name: "xmlName"} 59 } 60 61 // XMLNamespace represents smithy.api#xmlNamespace. 62 type XMLNamespace struct { 63 URI string 64 Prefix string 65 } 66 67 // TraitID identifies the trait. 68 func (*XMLNamespace) TraitID() smithy.ShapeID { 69 return smithy.ShapeID{Namespace: "smithy.api", Name: "xmlNamespace"} 70 }