pub struct Constraints {
pub min: Option<f64>,
pub max: Option<f64>,
pub required: bool,
}Expand description
Optional constraints on a parameter’s value (min/max range, required flag). Used for validation and UI hints (slider bounds, required markers).
Fields§
§min: Option<f64>Minimum allowed value (for numeric parameters).
max: Option<f64>Maximum allowed value (for numeric parameters).
required: boolWhether this parameter must be provided.
Trait Implementations§
Source§impl Clone for Constraints
impl Clone for Constraints
Source§fn clone(&self) -> Constraints
fn clone(&self) -> Constraints
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 Constraints
impl Debug for Constraints
Source§impl PartialEq for Constraints
impl PartialEq for Constraints
Source§impl Serialize for Constraints
impl Serialize for Constraints
impl StructuralPartialEq for Constraints
Auto Trait Implementations§
impl Freeze for Constraints
impl RefUnwindSafe for Constraints
impl Send for Constraints
impl Sync for Constraints
impl Unpin for Constraints
impl UnsafeUnpin for Constraints
impl UnwindSafe for Constraints
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