pub enum NodeControlValidationRule {
Required,
EnumValues {
values: Vec<Value>,
},
Regex {
pattern: String,
},
Range {
min: Option<f64>,
max: Option<f64>,
},
ExpressionShape {
language: Option<String>,
},
}Expand description
Validation rules adapters can present without owning validation execution.
Variants§
Trait Implementations§
Source§impl Clone for NodeControlValidationRule
impl Clone for NodeControlValidationRule
Source§fn clone(&self) -> NodeControlValidationRule
fn clone(&self) -> NodeControlValidationRule
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 NodeControlValidationRule
impl Debug for NodeControlValidationRule
Source§impl<'de> Deserialize<'de> for NodeControlValidationRule
impl<'de> Deserialize<'de> for NodeControlValidationRule
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
Source§impl PartialEq for NodeControlValidationRule
impl PartialEq for NodeControlValidationRule
Source§fn eq(&self, other: &NodeControlValidationRule) -> bool
fn eq(&self, other: &NodeControlValidationRule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodeControlValidationRule
Auto Trait Implementations§
impl Freeze for NodeControlValidationRule
impl RefUnwindSafe for NodeControlValidationRule
impl Send for NodeControlValidationRule
impl Sync for NodeControlValidationRule
impl Unpin for NodeControlValidationRule
impl UnsafeUnpin for NodeControlValidationRule
impl UnwindSafe for NodeControlValidationRule
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