Struct git_iris::commit::service::IrisCommitService
source · pub struct IrisCommitService { /* private fields */ }
Implementations§
source§impl IrisCommitService
impl IrisCommitService
pub fn new( config: Config, repo_path: PathBuf, provider_type: LLMProviderType, use_gitmoji: bool, verify: bool, ) -> Self
pub fn check_environment(&self) -> Result<()>
pub async fn get_git_info(&self) -> Result<CommitContext>
pub async fn generate_message( &self, preset: &str, instructions: &str, ) -> Result<GeneratedMessage>
pub fn perform_commit(&self, message: &str) -> Result<CommitResult>
pub fn pre_commit(&self) -> Result<()>
pub fn create_message_channel( &self, ) -> (Sender<Result<GeneratedMessage>>, Receiver<Result<GeneratedMessage>>)
Auto Trait Implementations§
impl Freeze for IrisCommitService
impl !RefUnwindSafe for IrisCommitService
impl Send for IrisCommitService
impl Sync for IrisCommitService
impl Unpin for IrisCommitService
impl !UnwindSafe for IrisCommitService
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