pub struct TodoItem {
pub tag: String,
pub message: String,
pub line: usize,
pub column: usize,
pub line_content: String,
pub author: Option<String>,
pub priority: Priority,
}Expand description
Represents a found TODO item in the source code
Fields§
§tag: StringThe tag that was matched (e.g., “TODO”, “FIXME”)
message: StringThe message following the tag
line: usizeLine number where the tag was found (1-indexed)
column: usizeColumn number where the tag starts (1-indexed)
line_content: StringThe full line content
Optional author/assignee if specified (e.g., TODO(john): …)
priority: PriorityPriority level inferred from tag type
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TodoItem
impl<'de> Deserialize<'de> for TodoItem
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
impl Eq for TodoItem
impl StructuralPartialEq for TodoItem
Auto Trait Implementations§
impl Freeze for TodoItem
impl RefUnwindSafe for TodoItem
impl Send for TodoItem
impl Sync for TodoItem
impl Unpin for TodoItem
impl UnwindSafe for TodoItem
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.