code: func (r *ruleImpl) Attr(name string) (starlark.Value, error) {
  	switch name {
  	case "defaults":
  		return r.defaults, nil
  	default:
  		return nil, nil
  	}
  }
docs: // Attr is part of starlark.HasAttrs interface.