code: func HashResource(resource *Resource) SchemaSetFunc {
  	return func(v interface{}) int {
  		var buf bytes.Buffer
  		SerializeResourceForHash(&buf, v, resource)
  		return hashcode.String(buf.String())
  	}
  }
docs: // HashResource hashes complex structures that are described using
  // a *Resource. This is the default set implementation used when a set's
  // element type is a full resource.