pub struct ReviewCommentThread {
pub anchor_side: ReviewCommentAnchorSide,
pub comments: Vec<ReviewComment>,
pub is_outdated: Option<bool>,
pub is_resolved: bool,
pub line: Option<u32>,
pub path: String,
pub start_line: Option<u32>,
}Expand description
One review thread anchored to a line of the review request diff.
Threads group chronological comments that share the same anchor. v1 of
Agentty’s comments preview renders these read-only, grouped by file and
sorted by (path, line) before display.
Fields§
§anchor_side: ReviewCommentAnchorSideDiff side used with line when placing this thread inline.
comments: Vec<ReviewComment>Chronological reviewer comments attached to this thread.
is_outdated: Option<bool>Whether newer changes made the thread’s original diff position stale, when the forge exposes that state.
is_resolved: boolWhether the thread has been marked resolved on the forge.
line: Option<u32>Anchor line number on anchor_side, when the forge exposes one.
path: StringFile path the thread is anchored to, relative to the repository root.
start_line: Option<u32>Optional first line for a multi-line thread on anchor_side.
Trait Implementations§
Source§impl Clone for ReviewCommentThread
impl Clone for ReviewCommentThread
Source§fn clone(&self) -> ReviewCommentThread
fn clone(&self) -> ReviewCommentThread
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReviewCommentThread
impl Debug for ReviewCommentThread
Source§impl PartialEq for ReviewCommentThread
impl PartialEq for ReviewCommentThread
Source§fn eq(&self, other: &ReviewCommentThread) -> bool
fn eq(&self, other: &ReviewCommentThread) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ReviewCommentThread
impl StructuralPartialEq for ReviewCommentThread
Auto Trait Implementations§
impl Freeze for ReviewCommentThread
impl RefUnwindSafe for ReviewCommentThread
impl Send for ReviewCommentThread
impl Sync for ReviewCommentThread
impl Unpin for ReviewCommentThread
impl UnsafeUnpin for ReviewCommentThread
impl UnwindSafe for ReviewCommentThread
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