pub enum ValidationRule {
ServiceName,
Semver,
Environment {
allowed: Vec<String>,
},
OtelConfig,
Custom {
name: String,
},
}Expand description
Validation rule types for template validation
Variants§
ServiceName
Validate service name follows naming conventions
Semver
Validate version follows semver format
Environment
Validate environment is one of allowed values
OtelConfig
Validate required OTEL configuration is present
Custom
Custom validation function
Implementations§
Trait Implementations§
Source§impl Clone for ValidationRule
impl Clone for ValidationRule
Auto Trait Implementations§
impl Freeze for ValidationRule
impl RefUnwindSafe for ValidationRule
impl Send for ValidationRule
impl Sync for ValidationRule
impl Unpin for ValidationRule
impl UnwindSafe for ValidationRule
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