Enum amplify_syn::ValueReq [−][src]
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
Argument or an attribute must hold a value
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
Tuple Fields of Default
0: ArgValue
Argument or an attribute may or may not hold a value
Argument or an attribute must not hold a value
Implementations
Detects if the presence of the value is required
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ValueReq
impl UnwindSafe for ValueReq
Blanket Implementations
Mutably borrows from an owned value. Read more