MCPcopy Create free account
hub / github.com/6boris/web3-template / ValidateAll

Method ValidateAll

api/interface/web3/defi.pb.validate.go:155–157  ·  view source on GitHub ↗

ValidateAll checks the field values on GetTokenPriceReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetTokenPriceReplyMultiError, or nil if none found.

()

Source from the content-addressed store, hash-verified

153// violated, the result is a list of violation errors wrapped in
154// GetTokenPriceReplyMultiError, or nil if none found.
155func (m *GetTokenPriceReply) ValidateAll() error {
156 return m.validate(true)
157}
158
159func (m *GetTokenPriceReply) validate(all bool) error {
160 if m == nil {

Callers 1

validateMethod · 0.45

Calls 1

validateMethod · 0.95

Tested by

no test coverage detected