pub struct DiagnosticRule { /* private fields */ }Expand description
Immutable metadata shared by human, JSON, and support-bundle presentation.
Implementations§
Source§impl DiagnosticRule
impl DiagnosticRule
Sourcepub const fn default_severity(self) -> Severity
pub const fn default_severity(self) -> Severity
Returns the rule’s normal severity.
Sourcepub const fn description(self) -> &'static str
pub const fn description(self) -> &'static str
Returns the value-free explanation of the condition.
Sourcepub const fn help(self) -> &'static str
pub const fn help(self) -> &'static str
Returns static remediation guidance that never contains user data.
Sourcepub fn diagnostic_code(self) -> Result<DiagnosticCode, InvalidDiagnosticCode>
pub fn diagnostic_code(self) -> Result<DiagnosticCode, InvalidDiagnosticCode>
Constructs the validated code used by structured engine diagnostics.
§Errors
Returns InvalidDiagnosticCode if the repository-owned catalogue is malformed.
Trait Implementations§
Source§impl Clone for DiagnosticRule
impl Clone for DiagnosticRule
Source§fn clone(&self) -> DiagnosticRule
fn clone(&self) -> DiagnosticRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DiagnosticRule
Source§impl Debug for DiagnosticRule
impl Debug for DiagnosticRule
impl Eq for DiagnosticRule
Source§impl PartialEq for DiagnosticRule
impl PartialEq for DiagnosticRule
impl StructuralPartialEq 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