Enum amplify_syn::ArgValueReq [−][src]
pub enum ArgValueReq {
Required {
default: Option<ArgValue>,
class: ValueClass,
},
Optional(ValueClass),
Prohibited,
}
Expand description
Requirements for attribute or named argument value presence
Variants
Argument must hold a value with the provided class
Fields of Required
Argument or an attribute may or may not hold a value
Tuple Fields of Optional
0: ValueClass
Argument or an attribute must not hold a value
Implementations
Constructs argument requirements object with default value
Construct ArgValueReq::Required
variant with no default value
Returns value class requirements, if any
Returns default argument value. If not default is provided within the
requirement, returns ArgValue::None
(since this is de facto
default value for any argument).
Determines whether argument is required to have a value
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ArgValueReq
impl !Send for ArgValueReq
impl !Sync for ArgValueReq
impl Unpin for ArgValueReq
impl UnwindSafe for ArgValueReq
Blanket Implementations
Mutably borrows from an owned value. Read more