pub struct StatusContext {
pub task_type: String,
pub branch: Option<String>,
pub file_count: Option<usize>,
pub activity: String,
pub files: Vec<String>,
pub is_regeneration: bool,
pub change_summary: Option<String>,
pub current_content_hint: Option<String>,
}Expand description
Context for generating status messages
Fields§
§task_type: StringType of task being performed
branch: Option<String>Current branch name
file_count: Option<usize>Number of files being analyzed
activity: StringBrief summary of what’s happening (e.g., “analyzing commit changes”)
files: Vec<String>Actual file names being changed (for richer context)
is_regeneration: boolWhether this is a regeneration (we have more context available)
change_summary: Option<String>Brief description of what’s changing (e.g., “auth system, test fixes”)
current_content_hint: Option<String>On regeneration: hint about current content (e.g., “commit about auth refactor”)
Implementations§
Source§impl StatusContext
impl StatusContext
pub fn new(task_type: &str, activity: &str) -> Self
pub fn with_branch(self, branch: impl Into<String>) -> Self
pub fn with_file_count(self, count: usize) -> Self
pub fn with_files(self, files: Vec<String>) -> Self
pub fn with_regeneration(self, is_regen: bool) -> Self
pub fn with_change_summary(self, summary: impl Into<String>) -> Self
pub fn with_content_hint(self, hint: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for StatusContext
impl Clone for StatusContext
Source§fn clone(&self) -> StatusContext
fn clone(&self) -> StatusContext
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 StatusContext
impl RefUnwindSafe for StatusContext
impl Send for StatusContext
impl Sync for StatusContext
impl Unpin for StatusContext
impl UnwindSafe for StatusContext
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> 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