pub struct ZodAttrs {Show 17 fields
pub min: Option<f64>,
pub max: Option<f64>,
pub int: bool,
pub positive: bool,
pub negative: bool,
pub nonnegative: bool,
pub nonpositive: bool,
pub finite: bool,
pub length: Option<usize>,
pub min_length: Option<usize>,
pub max_length: Option<usize>,
pub starts_with: Option<String>,
pub ends_with: Option<String>,
pub includes: Option<String>,
pub email: bool,
pub url: bool,
pub regex: Option<String>,
}Expand description
Parsed #[zod(...)] attributes for a single struct field.
Fields§
§min: Option<f64>§max: Option<f64>§int: bool§positive: bool§negative: bool§nonnegative: bool§nonpositive: bool§finite: bool§length: Option<usize>§min_length: Option<usize>§max_length: Option<usize>§starts_with: Option<String>§ends_with: Option<String>§includes: Option<String>§email: bool§url: bool§regex: Option<String>Trait Implementations§
impl StructuralPartialEq for ZodAttrs
Auto Trait Implementations§
impl Freeze for ZodAttrs
impl RefUnwindSafe for ZodAttrs
impl Send for ZodAttrs
impl Sync for ZodAttrs
impl Unpin for ZodAttrs
impl UnsafeUnpin for ZodAttrs
impl UnwindSafe for ZodAttrs
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