pub struct LinterReport {
pub target_file: String,
pub total_lines: usize,
pub findings: Vec<LinterFinding>,
pub errors_count: usize,
pub warnings_count: usize,
pub info_count: usize,
pub estimated_wasted_tokens: usize,
pub cache_clean: bool,
}Fields§
§target_file: String§total_lines: usize§findings: Vec<LinterFinding>§errors_count: usize§warnings_count: usize§info_count: usize§estimated_wasted_tokens: usize§cache_clean: boolImplementations§
Source§impl LinterReport
impl LinterReport
pub fn new( target_file: String, total_lines: usize, findings: Vec<LinterFinding>, ) -> Self
pub fn has_errors(&self) -> bool
Trait Implementations§
Source§impl Clone for LinterReport
impl Clone for LinterReport
Source§impl Debug for LinterReport
impl Debug for LinterReport
Source§impl<'de> Deserialize<'de> for LinterReport
impl<'de> Deserialize<'de> for LinterReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LinterReport
impl RefUnwindSafe for LinterReport
impl Send for LinterReport
impl Sync for LinterReport
impl Unpin for LinterReport
impl UnsafeUnpin for LinterReport
impl UnwindSafe for LinterReport
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