pub struct Report { /* private fields */ }Implementations
sourceimpl Report
impl Report
pub fn print_reports(
reports: &[Report],
file_library: &FileLibrary,
verbose: bool
)
pub fn error(message: String, code: ReportCode) -> Report
pub fn warning(message: String, code: ReportCode) -> Report
pub fn info(message: String, code: ReportCode) -> Report
pub fn add_primary(
&mut self,
location: FileLocation,
file_id: FileID,
message: String
) -> &mut Self
pub fn add_secondary(
&mut self,
location: FileLocation,
file_id: FileID,
possible_message: Option<String>
) -> &mut Self
pub fn add_note(&mut self, note: String) -> &mut Self
pub fn category(&self) -> &MessageCategory
pub fn message(&self) -> &String
pub fn primary(&self) -> &Vec<ReportLabel>
pub fn secondary(&self) -> &Vec<ReportLabel>
pub fn notes(&self) -> &Vec<String>
pub fn code(&self) -> &ReportCode
pub fn id(&self) -> String
Trait Implementations
sourceimpl ToSarif for Report
impl ToSarif for Report
type Sarif = Result
type Error = SarifError
fn to_sarif(&self, files: &FileLibrary) -> Result<Result, SarifError>
Auto Trait Implementations
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnwindSafe for Report
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more