pub struct FileRecord {Show 16 fields
pub path: String,
pub relative_path: String,
pub language: Option<Language>,
pub size_bytes: u64,
pub detected_encoding: Option<String>,
pub raw_line_categories: RawLineCounts,
pub effective_counts: EffectiveCounts,
pub status: FileStatus,
pub warnings: Vec<String>,
pub generated: bool,
pub minified: bool,
pub vendor: bool,
pub parse_mode: Option<ParseMode>,
pub submodule: Option<String>,
pub coverage: Option<FileCoverage>,
pub style_analysis: Option<StyleAnalysis>,
}Fields§
§path: String§relative_path: String§language: Option<Language>§size_bytes: u64§detected_encoding: Option<String>§raw_line_categories: RawLineCounts§effective_counts: EffectiveCounts§status: FileStatus§warnings: Vec<String>§generated: bool§minified: bool§vendor: bool§parse_mode: Option<ParseMode>§submodule: Option<String>§coverage: Option<FileCoverage>Line/function/branch coverage from an external LCOV file, when provided.
style_analysis: Option<StyleAnalysis>Lexical style-guide adherence analysis; None for unsupported languages.
Trait Implementations§
Source§impl Clone for FileRecord
impl Clone for FileRecord
Source§fn clone(&self) -> FileRecord
fn clone(&self) -> FileRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileRecord
impl Debug for FileRecord
Source§impl<'de> Deserialize<'de> for FileRecord
impl<'de> Deserialize<'de> for FileRecord
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 FileRecord
impl RefUnwindSafe for FileRecord
impl Send for FileRecord
impl Sync for FileRecord
impl Unpin for FileRecord
impl UnsafeUnpin for FileRecord
impl UnwindSafe for FileRecord
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