pub struct RepoMetadata {Show 17 fields
pub name: String,
pub branch: String,
pub commit_hash: String,
pub commit_hash_short: String,
pub commit_date: String,
pub commit_message: String,
pub commit_author: String,
pub commit_author_email: String,
pub file_count: usize,
pub total_lines: usize,
pub fs_owner: Option<String>,
pub fs_group: Option<String>,
pub generated_at: String,
pub repo_size: String,
pub fs_size: String,
pub detected_remote_url: Option<String>,
pub repo_absolute_path: Option<PathBuf>,
}Expand description
Metadata extracted from a git repository.
Fields§
§name: String§branch: String§commit_hash: String§commit_hash_short: String§commit_date: String§commit_message: StringEmail address of the last committer.
file_count: usize§total_lines: usize§fs_owner: Option<String>Filesystem owner of the input path (local paths only).
fs_group: Option<String>Filesystem group of the input path (local paths only).
generated_at: StringUTC timestamp when this PDF was generated.
repo_size: StringHuman-readable size of the git-tracked content (e.g. “4.2 MB”).
Computed from git ls-tree -r -l; empty for non-git paths.
fs_size: StringHuman-readable filesystem disk usage of the input path (e.g. “5.1 MB”).
Computed from du -sh; empty for remote repos.
detected_remote_url: Option<String>Remote URL detected from git config (e.g. git remote get-url origin).
Used to generate commit/author links even when Config::remote_url is None.
repo_absolute_path: Option<PathBuf>Absolute filesystem path to the repo root (local repos only, None for remote clones).
Used to generate file:// links on the cover page.
Trait Implementations§
Source§impl Clone for RepoMetadata
impl Clone for RepoMetadata
Source§fn clone(&self) -> RepoMetadata
fn clone(&self) -> RepoMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RepoMetadata
impl RefUnwindSafe for RepoMetadata
impl Send for RepoMetadata
impl Sync for RepoMetadata
impl Unpin for RepoMetadata
impl UnsafeUnpin for RepoMetadata
impl UnwindSafe for RepoMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more