pub struct FieldValidation {
pub min_value: Option<u64>,
pub max_value: Option<u64>,
pub allowed_values: Option<Vec<u64>>,
pub max_length: Option<usize>,
}Expand description
Field validation constraints
Fields§
§min_value: Option<u64>Minimum allowed value (for numeric types)
max_value: Option<u64>Maximum allowed value (for numeric types)
allowed_values: Option<Vec<u64>>Expected specific values (enum validation)
max_length: Option<usize>Maximum length (for string/bytes types)
Trait Implementations§
Source§impl Clone for FieldValidation
impl Clone for FieldValidation
Source§fn clone(&self) -> FieldValidation
fn clone(&self) -> FieldValidation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FieldValidation
impl Debug for FieldValidation
Source§impl<'de> Deserialize<'de> for FieldValidation
impl<'de> Deserialize<'de> for FieldValidation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FieldValidation
impl RefUnwindSafe for FieldValidation
impl Send for FieldValidation
impl Sync for FieldValidation
impl Unpin for FieldValidation
impl UnsafeUnpin for FieldValidation
impl UnwindSafe for FieldValidation
Blanket Implementations§
impl<T> Allocation for T
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