pub struct RuleSpec {
pub kind: RuleKindSpec,
pub message: Option<LitStr>,
pub context: Option<LitStr>,
pub target: Option<LitStr>,
pub severity: SeveritySpec,
}Expand description
A rule of a field or of a struct.
Fields§
§kind: RuleKindSpecWhat it checks.
message: Option<LitStr>What to say instead of the usual words.
context: Option<LitStr>Where it applies.
target: Option<LitStr>Which records it checks, as an expression.
severity: SeveritySpecHow much it stops.
Trait Implementations§
Auto Trait Implementations§
impl !Send for RuleSpec
impl !Sync for RuleSpec
impl Freeze for RuleSpec
impl RefUnwindSafe for RuleSpec
impl Unpin for RuleSpec
impl UnsafeUnpin for RuleSpec
impl UnwindSafe for RuleSpec
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