MCPcopy
hub / github.com/gogo/protobuf / Struct

Struct Struct

types/struct.pb.go:64–70  ·  view source on GitHub ↗

`Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are

Source from the content-addressed store, hash-verified

62//
63// The JSON representation for `Struct` is JSON object.
64type Struct struct {
65 // Unordered map of dynamically typed values.
66 Fields map[string]*Value `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
67 XXX_NoUnkeyedLiteral struct{} `json:"-"`
68 XXX_unrecognized []byte `json:"-"`
69 XXX_sizecache int32 `json:"-"`
70}
71
72func (m *Struct) Reset() { *m = Struct{} }
73func (*Struct) ProtoMessage() {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected