pub struct RulepackConfig {
pub version: String,
pub name: String,
pub description: String,
pub rules: Vec<ValidationRule>,
pub cross_field_rules: Vec<CrossFieldRule>,
pub created_at: String,
pub is_active: bool,
}Expand description
Rulepack configuration for a specific version
Fields§
§version: StringVersion identifier
name: StringDisplay name
description: StringDescription
rules: Vec<ValidationRule>Validation rules
cross_field_rules: Vec<CrossFieldRule>Cross-field rules
created_at: StringCreation timestamp
is_active: boolWhether this rulepack is active
Implementations§
Trait Implementations§
Source§impl Clone for RulepackConfig
impl Clone for RulepackConfig
Source§fn clone(&self) -> RulepackConfig
fn clone(&self) -> RulepackConfig
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 RulepackConfig
impl Debug for RulepackConfig
Source§impl<'de> Deserialize<'de> for RulepackConfig
impl<'de> Deserialize<'de> for RulepackConfig
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 RulepackConfig
impl RefUnwindSafe for RulepackConfig
impl Send for RulepackConfig
impl Sync for RulepackConfig
impl Unpin for RulepackConfig
impl UnsafeUnpin for RulepackConfig
impl UnwindSafe for RulepackConfig
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