pub enum ConstraintTypeAttr {
Length(LitInt, LitInt),
Range(Lit, Lit),
Validator,
SpecialValidator(Type),
Regex(LitStr),
Enumer(Type),
}Variants§
Trait Implementations§
Source§impl MetaParser for ConstraintTypeAttr
impl MetaParser for ConstraintTypeAttr
Source§impl Parse for ConstraintTypeAttr
impl Parse for ConstraintTypeAttr
fn parse(stream: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for ConstraintTypeAttr
impl RefUnwindSafe for ConstraintTypeAttr
impl !Send for ConstraintTypeAttr
impl !Sync for ConstraintTypeAttr
impl Unpin for ConstraintTypeAttr
impl UnwindSafe for ConstraintTypeAttr
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