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
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ValueReq
impl !Send for ValueReq
impl !Sync for ValueReq
impl Unpin for ValueReq
impl UnwindSafe for ValueReq
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more