github.com/ipld/go-ipld-prime@v0.21.0/schema/dmt/types.go (about)

     1  package schemadmt
     2  
     3  type Schema struct {
     4  	Types Map__TypeName__TypeDefn
     5  }
     6  type Map__TypeName__TypeDefn struct {
     7  	Keys   []string
     8  	Values map[string]TypeDefn
     9  }
    10  type TypeDefn struct {
    11  	TypeDefnBool   *TypeDefnBool
    12  	TypeDefnString *TypeDefnString
    13  	TypeDefnBytes  *TypeDefnBytes
    14  	TypeDefnInt    *TypeDefnInt
    15  	TypeDefnFloat  *TypeDefnFloat
    16  	TypeDefnMap    *TypeDefnMap
    17  	TypeDefnList   *TypeDefnList
    18  	TypeDefnLink   *TypeDefnLink
    19  	TypeDefnUnion  *TypeDefnUnion
    20  	TypeDefnStruct *TypeDefnStruct
    21  	TypeDefnEnum   *TypeDefnEnum
    22  	TypeDefnUnit   *TypeDefnUnit
    23  	TypeDefnAny    *TypeDefnAny
    24  	TypeDefnCopy   *TypeDefnCopy
    25  }
    26  type TypeNameOrInlineDefn struct {
    27  	TypeName   *string
    28  	InlineDefn *InlineDefn
    29  }
    30  type InlineDefn struct {
    31  	TypeDefnMap  *TypeDefnMap
    32  	TypeDefnList *TypeDefnList
    33  	TypeDefnLink *TypeDefnLink
    34  }
    35  type TypeDefnBool struct {
    36  }
    37  type TypeDefnString struct {
    38  }
    39  type TypeDefnBytes struct {
    40  }
    41  type TypeDefnInt struct {
    42  }
    43  type TypeDefnFloat struct {
    44  }
    45  type TypeDefnMap struct {
    46  	KeyType        string
    47  	ValueType      TypeNameOrInlineDefn
    48  	ValueNullable  *bool
    49  	Representation *MapRepresentation
    50  }
    51  type MapRepresentation struct {
    52  	MapRepresentation_Map         *MapRepresentation_Map
    53  	MapRepresentation_Stringpairs *MapRepresentation_Stringpairs
    54  	MapRepresentation_Listpairs   *MapRepresentation_Listpairs
    55  }
    56  type MapRepresentation_Map struct {
    57  }
    58  type MapRepresentation_Stringpairs struct {
    59  	InnerDelim string
    60  	EntryDelim string
    61  }
    62  type MapRepresentation_Listpairs struct {
    63  }
    64  type TypeDefnList struct {
    65  	ValueType      TypeNameOrInlineDefn
    66  	ValueNullable  *bool
    67  	Representation *ListRepresentation
    68  }
    69  type ListRepresentation struct {
    70  	ListRepresentation_List *ListRepresentation_List
    71  }
    72  type ListRepresentation_List struct {
    73  }
    74  type TypeDefnUnion struct {
    75  	Members        List__UnionMember
    76  	Representation UnionRepresentation
    77  }
    78  type List__UnionMember []UnionMember
    79  type UnionMember struct {
    80  	TypeName              *string
    81  	UnionMemberInlineDefn *UnionMemberInlineDefn
    82  }
    83  type UnionMemberInlineDefn struct {
    84  	TypeDefnLink *TypeDefnLink
    85  }
    86  type List__TypeName []string
    87  type TypeDefnLink struct {
    88  	ExpectedType *string
    89  }
    90  type UnionRepresentation struct {
    91  	UnionRepresentation_Kinded       *UnionRepresentation_Kinded
    92  	UnionRepresentation_Keyed        *UnionRepresentation_Keyed
    93  	UnionRepresentation_Envelope     *UnionRepresentation_Envelope
    94  	UnionRepresentation_Inline       *UnionRepresentation_Inline
    95  	UnionRepresentation_StringPrefix *UnionRepresentation_StringPrefix
    96  	UnionRepresentation_BytesPrefix  *UnionRepresentation_BytesPrefix
    97  }
    98  type UnionRepresentation_Kinded struct {
    99  	Keys   []string
   100  	Values map[string]UnionMember
   101  }
   102  type UnionRepresentation_Keyed struct {
   103  	Keys   []string
   104  	Values map[string]UnionMember
   105  }
   106  type Map__String__UnionMember struct {
   107  	Keys   []string
   108  	Values map[string]TypeDefn
   109  }
   110  type UnionRepresentation_Envelope struct {
   111  	DiscriminantKey   string
   112  	ContentKey        string
   113  	DiscriminantTable Map__String__UnionMember
   114  }
   115  type UnionRepresentation_Inline struct {
   116  	DiscriminantKey   string
   117  	DiscriminantTable Map__String__TypeName
   118  }
   119  type UnionRepresentation_StringPrefix struct {
   120  	Prefixes Map__String__TypeName
   121  }
   122  type UnionRepresentation_BytesPrefix struct {
   123  	Prefixes Map__HexString__TypeName
   124  }
   125  type Map__HexString__TypeName struct {
   126  	Keys   []string
   127  	Values map[string]string
   128  }
   129  type Map__String__TypeName struct {
   130  	Keys   []string
   131  	Values map[string]string
   132  }
   133  type Map__TypeName__Int struct {
   134  	Keys   []string
   135  	Values map[string]int
   136  }
   137  type TypeDefnStruct struct {
   138  	Fields         Map__FieldName__StructField
   139  	Representation StructRepresentation
   140  }
   141  type Map__FieldName__StructField struct {
   142  	Keys   []string
   143  	Values map[string]StructField
   144  }
   145  type StructField struct {
   146  	Type     TypeNameOrInlineDefn
   147  	Optional *bool
   148  	Nullable *bool
   149  }
   150  type StructRepresentation struct {
   151  	StructRepresentation_Map         *StructRepresentation_Map
   152  	StructRepresentation_Tuple       *StructRepresentation_Tuple
   153  	StructRepresentation_Stringpairs *StructRepresentation_Stringpairs
   154  	StructRepresentation_Stringjoin  *StructRepresentation_Stringjoin
   155  	StructRepresentation_Listpairs   *StructRepresentation_Listpairs
   156  }
   157  type StructRepresentation_Map struct {
   158  	Fields *Map__FieldName__StructRepresentation_Map_FieldDetails
   159  }
   160  type Map__FieldName__StructRepresentation_Map_FieldDetails struct {
   161  	Keys   []string
   162  	Values map[string]StructRepresentation_Map_FieldDetails
   163  }
   164  type StructRepresentation_Map_FieldDetails struct {
   165  	Rename   *string
   166  	Implicit *AnyScalar
   167  }
   168  type StructRepresentation_Tuple struct {
   169  	FieldOrder *List__FieldName
   170  }
   171  type List__FieldName []string
   172  type StructRepresentation_Stringpairs struct {
   173  	InnerDelim string
   174  	EntryDelim string
   175  }
   176  type StructRepresentation_Stringjoin struct {
   177  	Join       string
   178  	FieldOrder *List__FieldName
   179  }
   180  type StructRepresentation_Listpairs struct {
   181  }
   182  type TypeDefnEnum struct {
   183  	Members        List__EnumMember
   184  	Representation EnumRepresentation
   185  }
   186  type Unit struct {
   187  }
   188  type List__EnumMember []string
   189  type EnumRepresentation struct {
   190  	EnumRepresentation_String *EnumRepresentation_String
   191  	EnumRepresentation_Int    *EnumRepresentation_Int
   192  }
   193  type EnumRepresentation_String struct {
   194  	Keys   []string
   195  	Values map[string]string
   196  }
   197  type EnumRepresentation_Int struct {
   198  	Keys   []string
   199  	Values map[string]int
   200  }
   201  type TypeDefnUnit struct {
   202  	Representation string
   203  }
   204  type TypeDefnAny struct {
   205  }
   206  type TypeDefnCopy struct {
   207  	FromType string
   208  }
   209  type AnyScalar struct {
   210  	Bool   *bool
   211  	String *string
   212  	Bytes  *[]uint8
   213  	Int    *int
   214  	Float  *float64
   215  }