pub struct RuleInfoReport {
pub id: String,
pub rule_type: String,
pub severity: String,
pub enabled: bool,
pub builtin: bool,
pub tags: Vec<String>,
pub languages: Vec<String>,
pub message: String,
pub fix: Option<String>,
pub description: Option<String>,
pub allow: Vec<String>,
}Expand description
Structured report for normalize rules show <id>.
Returned by rules show — contains machine-readable rule metadata suitable
for agent consumption via --json.
Fields§
§id: StringRule identifier (e.g. rust/unwrap-in-impl).
rule_type: StringRule type: "syntax", "fact", or "native".
severity: StringEffective severity: "error", "warning", "info", or "hint".
enabled: boolWhether the rule is currently enabled.
builtin: boolWhether the rule ships with normalize (true) or is user-defined (false).
Tag labels attached to this rule.
languages: Vec<String>Languages this rule applies to (empty means all languages).
message: StringShort human-readable message shown on a violation.
fix: Option<String>Auto-fix replacement string, if any (None = no fix, Some("") = delete match).
description: Option<String>Full documentation markdown, if present in the rule file.
allow: Vec<String>Allow-list glob patterns that suppress violations for matching paths.
Trait Implementations§
Source§impl Clone for RuleInfoReport
impl Clone for RuleInfoReport
Source§fn clone(&self) -> RuleInfoReport
fn clone(&self) -> RuleInfoReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RuleInfoReport
impl Debug for RuleInfoReport
Source§impl JsonSchema for RuleInfoReport
impl JsonSchema for RuleInfoReport
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl OutputFormatter for RuleInfoReport
impl OutputFormatter for RuleInfoReport
Source§fn format_text(&self) -> String
fn format_text(&self) -> String
Source§fn format_pretty(&self) -> String
fn format_pretty(&self) -> String
Auto Trait Implementations§
impl Freeze for RuleInfoReport
impl RefUnwindSafe for RuleInfoReport
impl Send for RuleInfoReport
impl Sync for RuleInfoReport
impl Unpin for RuleInfoReport
impl UnsafeUnpin for RuleInfoReport
impl UnwindSafe for RuleInfoReport
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.