pub struct StudioApp {
pub state: StudioState,
pub history: History,
/* private fields */
}Expand description
Main Iris Studio application
Fields§
§state: StudioStateApplication state
history: HistoryHistory for all content, chat, and events
Implementations§
Source§impl StudioApp
impl StudioApp
Sourcepub fn new(
config: Config,
repo: Option<Arc<GitRepo>>,
commit_service: Option<Arc<GitCommitService>>,
agent_service: Option<Arc<IrisAgentService>>,
) -> Self
pub fn new( config: Config, repo: Option<Arc<GitRepo>>, commit_service: Option<Arc<GitCommitService>>, agent_service: Option<Arc<IrisAgentService>>, ) -> Self
Create a new Studio application
Sourcepub fn set_initial_mode(&mut self, mode: Mode)
pub fn set_initial_mode(&mut self, mode: Mode)
Set explicit initial mode
Sourcepub fn refresh_git_status(&mut self) -> Result<()>
pub fn refresh_git_status(&mut self) -> Result<()>
Update git status from repository
Sourcepub fn run(&mut self) -> Result<ExitResult>
pub fn run(&mut self) -> Result<ExitResult>
Run the TUI application
Sourcepub fn update_pr_data(
&mut self,
from_ref: Option<String>,
to_ref: Option<String>,
)
pub fn update_pr_data( &mut self, from_ref: Option<String>, to_ref: Option<String>, )
Update PR mode data - load commits and diff between refs
Sourcepub fn update_review_data(
&mut self,
from_ref: Option<String>,
to_ref: Option<String>,
)
pub fn update_review_data( &mut self, from_ref: Option<String>, to_ref: Option<String>, )
Update Review mode data - load diff between from_ref and to_ref
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for StudioApp
impl !RefUnwindSafe for StudioApp
impl Send for StudioApp
impl Sync for StudioApp
impl Unpin for StudioApp
impl !UnwindSafe for StudioApp
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> 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