pub struct TodoComment {
pub id: String,
pub file_path: PathBuf,
pub line_number: usize,
pub column_start: usize,
pub column_end: usize,
pub todo_type: TodoType,
pub original_text: String,
pub description: String,
pub context_lines: Vec<String>,
pub function_context: Option<String>,
pub analysis: Option<AnalysisResult>,
}Expand description
A located TODO comment extracted from a source file.
Contains the comment text, its position within the file, surrounding context,
and the enclosing function name (if detected). The id field
({file_path}_L{line_number}) is used for GitHub issue deduplication.
Fields§
§id: StringUnique identifier: {file_path}_L{line_number}.
file_path: PathBuf§line_number: usize§column_start: usize§column_end: usize§todo_type: TodoType§original_text: StringThe full original comment line as it appears in the source file.
description: StringThe extracted description text after the TODO keyword and colon.
context_lines: Vec<String>Surrounding source lines for context display.
function_context: Option<String>Name of the enclosing function, if detected by pattern matching.
analysis: Option<AnalysisResult>LLM validation analysis, populated when --ai flag is used.
Trait Implementations§
Source§impl Clone for TodoComment
impl Clone for TodoComment
Source§fn clone(&self) -> TodoComment
fn clone(&self) -> TodoComment
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 moreSource§impl Debug for TodoComment
impl Debug for TodoComment
Source§impl<'de> Deserialize<'de> for TodoComment
impl<'de> Deserialize<'de> for TodoComment
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
Source§impl PartialEq for TodoComment
impl PartialEq for TodoComment
Source§impl Serialize for TodoComment
impl Serialize for TodoComment
impl StructuralPartialEq for TodoComment
Auto Trait Implementations§
impl Freeze for TodoComment
impl RefUnwindSafe for TodoComment
impl Send for TodoComment
impl Sync for TodoComment
impl Unpin for TodoComment
impl UnsafeUnpin for TodoComment
impl UnwindSafe for TodoComment
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> FromResponse for Twhere
T: DeserializeOwned,
impl<T> FromResponse for Twhere
T: DeserializeOwned,
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