pub struct ArgumentConstraints {
pub pattern: Option<String>,
pub min: Option<f64>,
pub max: Option<f64>,
pub allowed_values: Option<Vec<Value>>,
pub message: Option<String>,
}
Expand description
Validation constraints for arguments
Fields§
§pattern: Option<String>
Regex pattern for string validation
min: Option<f64>
Minimum value for numbers
max: Option<f64>
Maximum value for numbers
allowed_values: Option<Vec<Value>>
Allowed values
message: Option<String>
Custom validation message
Trait Implementations§
Source§impl Clone for ArgumentConstraints
impl Clone for ArgumentConstraints
Source§fn clone(&self) -> ArgumentConstraints
fn clone(&self) -> ArgumentConstraints
Returns a copy 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 ArgumentConstraints
impl Debug for ArgumentConstraints
Source§impl<'de> Deserialize<'de> for ArgumentConstraints
impl<'de> Deserialize<'de> for ArgumentConstraints
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 ArgumentConstraints
impl RefUnwindSafe for ArgumentConstraints
impl Send for ArgumentConstraints
impl Sync for ArgumentConstraints
impl Unpin for ArgumentConstraints
impl UnwindSafe for ArgumentConstraints
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