pub trait Issue:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required methods
fn file_path(self: Vc<Self>) -> Vc<FileSystemPath>
where Self: Sized;
fn stage(self: Vc<Self>) -> Vc<IssueStage>
where Self: Sized;
fn title(self: Vc<Self>) -> Vc<StyledString>
where Self: Sized;
// Provided methods
fn severity(self: Vc<Self>) -> Vc<IssueSeverity>
where Self: Sized { ... }
fn description(self: Vc<Self>) -> Vc<OptionStyledString>
where Self: Sized { ... }
fn detail(self: Vc<Self>) -> Vc<OptionStyledString>
where Self: Sized { ... }
fn documentation_link(self: Vc<Self>) -> Vc<RcStr>
where Self: Sized { ... }
fn source(self: Vc<Self>) -> Vc<OptionIssueSource>
where Self: Sized { ... }
fn sub_issues(self: Vc<Self>) -> Vc<Issues>
where Self: Sized { ... }
fn into_plain(
self: Vc<Self>,
processing_path: Vc<OptionIssueProcessingPathItems>,
) -> Vc<PlainIssue>
where Self: Sized { ... }
}
Required Methods§
Sourcefn file_path(self: Vc<Self>) -> Vc<FileSystemPath>where
Self: Sized,
fn file_path(self: Vc<Self>) -> Vc<FileSystemPath>where
Self: Sized,
The file path that generated the issue, displayed to the user as message header.
Provided Methods§
Sourcefn severity(self: Vc<Self>) -> Vc<IssueSeverity>where
Self: Sized,
fn severity(self: Vc<Self>) -> Vc<IssueSeverity>where
Self: Sized,
Severity allows the user to filter out unimportant issues, with Bug being the highest priority and Info being the lowest.
Sourcefn description(self: Vc<Self>) -> Vc<OptionStyledString>where
Self: Sized,
fn description(self: Vc<Self>) -> Vc<OptionStyledString>where
Self: Sized,
A more verbose message of the issue, appropriate for providing multiline information of the issue.
Sourcefn detail(self: Vc<Self>) -> Vc<OptionStyledString>where
Self: Sized,
fn detail(self: Vc<Self>) -> Vc<OptionStyledString>where
Self: Sized,
Full details of the issue, appropriate for providing debug level information. Only displayed if the user explicitly asks for detailed messages (not to be confused with severity).
Sourcefn documentation_link(self: Vc<Self>) -> Vc<RcStr>where
Self: Sized,
fn documentation_link(self: Vc<Self>) -> Vc<RcStr>where
Self: Sized,
A link to relevant documentation of the issue. Only displayed in console if the user explicitly asks for detailed messages.
Sourcefn source(self: Vc<Self>) -> Vc<OptionIssueSource>where
Self: Sized,
fn source(self: Vc<Self>) -> Vc<OptionIssueSource>where
Self: Sized,
The source location that caused the issue. Eg, for a parsing error it should point at the offending character. Displayed to the user alongside the title/description.