pub enum ValidationRuleType {
JsonSchema,
Regex,
FieldRequired,
FieldType,
Cel,
MaxSize,
NamingConvention,
}Expand description
Rule type for content validation
Variants§
JsonSchema
JSON Schema validation rule
Regex
Regular expression pattern
FieldRequired
Field presence requirement
FieldType
Field type constraint
Cel
Custom CEL expression
MaxSize
Maximum schema size in bytes
NamingConvention
Schema naming convention
Trait Implementations§
Source§impl Clone for ValidationRuleType
impl Clone for ValidationRuleType
Source§fn clone(&self) -> ValidationRuleType
fn clone(&self) -> ValidationRuleType
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 ValidationRuleType
impl Debug for ValidationRuleType
Source§impl<'de> Deserialize<'de> for ValidationRuleType
impl<'de> Deserialize<'de> for ValidationRuleType
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 FromStr for ValidationRuleType
impl FromStr for ValidationRuleType
Source§impl PartialEq for ValidationRuleType
impl PartialEq for ValidationRuleType
Source§impl Serialize for ValidationRuleType
impl Serialize for ValidationRuleType
impl Eq for ValidationRuleType
impl StructuralPartialEq for ValidationRuleType
Auto Trait Implementations§
impl Freeze for ValidationRuleType
impl RefUnwindSafe for ValidationRuleType
impl Send for ValidationRuleType
impl Sync for ValidationRuleType
impl Unpin for ValidationRuleType
impl UnwindSafe for ValidationRuleType
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