pub struct RepositoryContext {
pub language: String,
pub project_type: String,
pub branch: String,
pub files_changed: String,
pub recent_commits: Vec<String>,
}Expand description
Repository context for better commit message generation
Fields§
§language: String§project_type: String§branch: String§files_changed: String§recent_commits: Vec<String>Implementations§
Source§impl RepositoryContext
impl RepositoryContext
Sourcepub fn detect_language(changes: &[DiffChange]) -> String
pub fn detect_language(changes: &[DiffChange]) -> String
Detect primary language from file extensions
Sourcepub fn detect_project_type(changes: &[DiffChange]) -> String
pub fn detect_project_type(changes: &[DiffChange]) -> String
Detect project type from file patterns
Trait Implementations§
Source§impl Clone for RepositoryContext
impl Clone for RepositoryContext
Source§impl Debug for RepositoryContext
impl Debug for RepositoryContext
Auto Trait Implementations§
impl Freeze for RepositoryContext
impl RefUnwindSafe for RepositoryContext
impl Send for RepositoryContext
impl Sync for RepositoryContext
impl Unpin for RepositoryContext
impl UnsafeUnpin for RepositoryContext
impl UnwindSafe for RepositoryContext
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