func (r *Rule) HasColor() bool {
	if r != nil && r.Color != nil {
		return true
	}

	return false
}
func (r *Rule) HasColor() bool {
	if r != nil && r.Color != nil {
		return true
	}

	return false
}
func ( r * Rule ) HasColor ( ) bool { if r != nil && r . Color != nil { return true } return false }
// HasColor returns a boolean if a field has been set.
HasColor returns a boolean if a field has been set .