pub struct RuleDescription {
pub reason: ApplicabilityReason,
pub tier: ApplicabilityTier,
pub explanation: &'static str,
}Expand description
Static description of one rule in check_applicability’s table: which reason it produces,
which tier it falls into, and its publication-ready explanation. rule_catalog exposes all
of them for the doc export (see the plan’s “Export für die Doku” section) — this is the single
source both check_applicability and the export pull from, so the exported table can never
drift from the rules actually enforced.
Fields§
§reason: ApplicabilityReason§tier: ApplicabilityTier§explanation: &'static strTrait Implementations§
Source§impl Clone for RuleDescription
impl Clone for RuleDescription
Source§fn clone(&self) -> RuleDescription
fn clone(&self) -> RuleDescription
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 RuleDescription
Source§impl Debug for RuleDescription
impl Debug for RuleDescription
impl Eq for RuleDescription
Source§impl PartialEq for RuleDescription
impl PartialEq for RuleDescription
Source§impl Serialize for RuleDescription
impl Serialize for RuleDescription
impl StructuralPartialEq for RuleDescription
Auto Trait Implementations§
impl Freeze for RuleDescription
impl RefUnwindSafe for RuleDescription
impl Send for RuleDescription
impl Sync for RuleDescription
impl Unpin for RuleDescription
impl UnsafeUnpin for RuleDescription
impl UnwindSafe for RuleDescription
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