pub struct ParameterConstraints {
pub min: Option<f64>,
pub max: Option<f64>,
pub min_length: Option<usize>,
pub max_length: Option<usize>,
pub pattern: Option<String>,
}Expand description
Parameter constraints.
Fields§
§min: Option<f64>Minimum value (for numeric types).
max: Option<f64>Maximum value (for numeric types).
min_length: Option<usize>Minimum length (for strings/arrays).
max_length: Option<usize>Maximum length (for strings/arrays).
pattern: Option<String>Regex pattern (for strings).
Trait Implementations§
Source§impl Clone for ParameterConstraints
impl Clone for ParameterConstraints
Source§fn clone(&self) -> ParameterConstraints
fn clone(&self) -> ParameterConstraints
Returns a duplicate of the value. Read more
1.0.0 · 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 ParameterConstraints
impl Debug for ParameterConstraints
Source§impl<'de> Deserialize<'de> for ParameterConstraints
impl<'de> Deserialize<'de> for ParameterConstraints
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 ParameterConstraints
impl RefUnwindSafe for ParameterConstraints
impl Send for ParameterConstraints
impl Sync for ParameterConstraints
impl Unpin for ParameterConstraints
impl UnsafeUnpin for ParameterConstraints
impl UnwindSafe for ParameterConstraints
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