pub struct ExplainOutput {
pub id: String,
pub name: String,
pub summary: String,
pub rationale: String,
pub example: String,
pub how_to_fix: String,
pub docs: String,
}Expand description
Envelope emitted by fallow explain <issue-type> --format json.
Standalone rule explanation. This command does not run project analysis
and intentionally returns a compact object without schema_version /
version metadata; consumers that need those should call any other
fallow JSON-producing command.
Fields§
§id: StringIssue-type identifier, e.g. unused-export.
name: StringHuman-readable issue-type name.
summary: StringOne-line description of what the issue type reports.
rationale: StringWhy the issue matters.
example: StringIllustrative code example of the issue.
how_to_fix: StringHow to resolve findings of this type.
docs: StringPublic documentation URL for the issue type.
Trait Implementations§
Source§impl Clone for ExplainOutput
impl Clone for ExplainOutput
Source§impl Debug for ExplainOutput
impl Debug for ExplainOutput
Auto Trait Implementations§
impl Freeze for ExplainOutput
impl RefUnwindSafe for ExplainOutput
impl Send for ExplainOutput
impl Sync for ExplainOutput
impl Unpin for ExplainOutput
impl UnsafeUnpin for ExplainOutput
impl UnwindSafe for ExplainOutput
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