FieldRef.Optional

Evaluates to true if this field is to be considered optional (does not need to be present in the YAML document)

template FieldRef(alias T, string name, bool forceOptional = false)
enum Optional = forceOptional || hasUDA!(Ref, CAOptional) || is(immutable(Type) == immutable(bool)) || is(Type : SetInfo!FT, FT) || (Default != Type.init);

Meta