pub struct CommitMessageCache { /* private fields */ }Expand description
Cache for commit messages organized by author and repository
Implementations§
Source§impl CommitMessageCache
impl CommitMessageCache
Sourcepub fn get_commit_messages(
&self,
author_email: &str,
repo_path: &str,
) -> Vec<CachedCommitMessage>
pub fn get_commit_messages( &self, author_email: &str, repo_path: &str, ) -> Vec<CachedCommitMessage>
Get commit messages for a specific author and repository
Sourcepub fn add_commit_messages(
&mut self,
author_email: &str,
repo_path: &str,
messages: Vec<CachedCommitMessage>,
)
pub fn add_commit_messages( &mut self, author_email: &str, repo_path: &str, messages: Vec<CachedCommitMessage>, )
Add commit messages for a specific author and repository
Get all cached authors for a repository
Sourcepub fn clear_repo_cache(&mut self, repo_path: &str)
pub fn clear_repo_cache(&mut self, repo_path: &str)
Clear cache for a specific repository
Sourcepub fn get_stats(&self) -> CacheStats
pub fn get_stats(&self) -> CacheStats
Get cache statistics
Trait Implementations§
Source§impl Debug for CommitMessageCache
impl Debug for CommitMessageCache
Source§impl<'de> Deserialize<'de> for CommitMessageCache
impl<'de> Deserialize<'de> for CommitMessageCache
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 CommitMessageCache
impl RefUnwindSafe for CommitMessageCache
impl Send for CommitMessageCache
impl Sync for CommitMessageCache
impl Unpin for CommitMessageCache
impl UnwindSafe for CommitMessageCache
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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