Enum amplify_syn::ValueReq
source · pub enum ValueReq {
Required,
Default(ArgValue),
Optional,
Prohibited,
}
Expand description
Requirements for attribute or named argument value presence for a values
with known class. If the value class is not known, use ArgValueReq
instead.
Variants§
Required
Argument or an attribute must hold a value
Default(ArgValue)
Argument or an attribute must hold a value; if the value is not present it will be substituted for the default value provided as the inner field
Optional
Argument or an attribute may or may not hold a value
Prohibited
Argument or an attribute must not hold a value