func (t *SubnetVisibility) UnmarshalBinary(data []byte) error {
	return t.UnmarshalText(data)
}
UnmarshalBinary satisfies BinaryUnmarshaler
Needed for msgpack
package clusterconfig
type SubnetVisibility int
const (
	UnknownSubnetVisibility SubnetVisibility = iota
	PublicSubnetVisibility
	PrivateSubnetVisibility
)
var _subnetVisibilities = []string{
	"unknown",
	"public",
	"private",
}
func SubnetVisibilityFromString(s string) SubnetVisibility {
	for i := 0; i < len(_subnetVisibilities); i++ {
		if s == _subnetVisibilities[i] {
			return SubnetVisibility(i)
		}
	}
	return UnknownSubnetVisibility
}
func SubnetVisibilityStrings() []string {
	return _subnetVisibilities[1:]
}
func (t SubnetVisibility) String() string {
	return _subnetVisibilities[t]
}
func (t SubnetVisibility) MarshalText() ([]byte, error) {
	return []byte(t.String()), nil
}
func (t *SubnetVisibility) UnmarshalText(text []byte) error {
	enum := string(text)
	for i := 0; i < len(_subnetVisibilities); i++ {
		if enum == _subnetVisibilities[i] {
			*t = SubnetVisibility(i)
			return nil
		}
	}
	*t = UnknownSubnetVisibility
	return nil
}