pub struct FileInfo {
pub path: PathBuf,
pub relative_path: PathBuf,
pub content: String,
pub file_type: FileType,
pub size: u64,
}Expand description
Information about a single file in the repository.
Contains both metadata and content for files that are included in the analysis. This structure is used to pass file information between scanning and generation phases.
Fields§
§path: PathBufAbsolute path to the file on the filesystem.
relative_path: PathBufPath relative to the repository root.
This is used for display purposes in the generated context.
content: StringComplete content of the file as a string.
For text files, this contains the entire file content. Binary files are not processed and won’t appear in scan results.
file_type: FileTypeType classification of the file based on its extension.
size: u64Size of the file in bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileInfo
impl<'de> Deserialize<'de> for FileInfo
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 FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnwindSafe for FileInfo
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