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) -> IssueSeverity { ... }
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 { ... }
}
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) -> IssueSeverity
fn severity(&self) -> IssueSeverity
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).
Trait Implementations§
Source§impl VcValueTrait for Box<dyn Issue>
impl VcValueTrait for Box<dyn Issue>
type ValueTrait = dyn Issue
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
Source§fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>
fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>
Returns the vtable for an implementation of this trait.
Panics if ValueTypeId does not implement the trait.