pub enum ParameterConstraint {
Range {
min: f64,
max: f64,
},
OneOf(Vec<Value>),
Regex(String),
Custom(String),
}Expand description
Parameter constraint
Variants§
Trait Implementations§
Source§impl Clone for ParameterConstraint
impl Clone for ParameterConstraint
Source§fn clone(&self) -> ParameterConstraint
fn clone(&self) -> ParameterConstraint
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 ParameterConstraint
impl Debug for ParameterConstraint
Source§impl<'de> Deserialize<'de> for ParameterConstraint
impl<'de> Deserialize<'de> for ParameterConstraint
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 ParameterConstraint
impl RefUnwindSafe for ParameterConstraint
impl Send for ParameterConstraint
impl Sync for ParameterConstraint
impl Unpin for ParameterConstraint
impl UnsafeUnpin for ParameterConstraint
impl UnwindSafe for ParameterConstraint
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