pub struct DiagnosticRule {
pub name: String,
pub condition: Option<JsonValue>,
pub assertions: Vec<DiagnosticRuleAssertion>,
}Expand description
An entry from the template’s Rules section.
Fields§
§name: String§condition: Option<JsonValue>The rule’s RuleCondition expression, if present, that gates when the assertions apply.
assertions: Vec<DiagnosticRuleAssertion>Trait Implementations§
Source§impl Clone for DiagnosticRule
impl Clone for DiagnosticRule
Source§impl Debug for DiagnosticRule
impl Debug for DiagnosticRule
Auto Trait Implementations§
impl Freeze for DiagnosticRule
impl RefUnwindSafe for DiagnosticRule
impl Send for DiagnosticRule
impl Sync for DiagnosticRule
impl Unpin for DiagnosticRule
impl UnsafeUnpin for DiagnosticRule
impl UnwindSafe for DiagnosticRule
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