pub struct RuleInfo {
pub id: String,
pub severity: Severity,
pub category: Option<String>,
pub description: String,
pub origin: RuleOrigin,
}Expand description
Metadata describing a validation rule.
Fields§
§id: String§severity: Severity§category: Option<String>§description: String§origin: RuleOriginTrait Implementations§
Source§impl<'de> Deserialize<'de> for RuleInfo
impl<'de> Deserialize<'de> for RuleInfo
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 From<&RuleDefinition> for RuleInfo
impl From<&RuleDefinition> for RuleInfo
Source§fn from(rule: &RuleDefinition) -> Self
fn from(rule: &RuleDefinition) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuleInfo
impl RefUnwindSafe for RuleInfo
impl Send for RuleInfo
impl Sync for RuleInfo
impl Unpin for RuleInfo
impl UnsafeUnpin for RuleInfo
impl UnwindSafe for RuleInfo
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