pub struct ReviewCommentSnapshot {
pub pr_level_comments: Vec<ReviewComment>,
pub threads: Vec<ReviewCommentThread>,
}Expand description
Full review-comments payload captured for one review request.
Separates forge-native threads (anchored to a file + line) from
pr_level_comments (review-request-wide discussion comments that do not
anchor to the diff). The UI renders the two categories side-by-side with a
synthetic “General discussion” entry on top of the comments file tree.
Fields§
§pr_level_comments: Vec<ReviewComment>Chronological review-request-wide comments that do not anchor to a file or line.
threads: Vec<ReviewCommentThread>Inline threads grouped by the file and line they are anchored to.
Trait Implementations§
Source§impl Clone for ReviewCommentSnapshot
impl Clone for ReviewCommentSnapshot
Source§fn clone(&self) -> ReviewCommentSnapshot
fn clone(&self) -> ReviewCommentSnapshot
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 ReviewCommentSnapshot
impl Debug for ReviewCommentSnapshot
Source§impl Default for ReviewCommentSnapshot
impl Default for ReviewCommentSnapshot
Source§fn default() -> ReviewCommentSnapshot
fn default() -> ReviewCommentSnapshot
Returns the “default value” for a type. Read more
impl Eq for ReviewCommentSnapshot
Source§impl PartialEq for ReviewCommentSnapshot
impl PartialEq for ReviewCommentSnapshot
Source§fn eq(&self, other: &ReviewCommentSnapshot) -> bool
fn eq(&self, other: &ReviewCommentSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReviewCommentSnapshot
Auto Trait Implementations§
impl Freeze for ReviewCommentSnapshot
impl RefUnwindSafe for ReviewCommentSnapshot
impl Send for ReviewCommentSnapshot
impl Sync for ReviewCommentSnapshot
impl Unpin for ReviewCommentSnapshot
impl UnsafeUnpin for ReviewCommentSnapshot
impl UnwindSafe for ReviewCommentSnapshot
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