pub struct Comment {
pub id: String,
pub file: String,
pub side: Side,
pub line: u32,
pub text: String,
pub created_at: String,
pub updated_at: String,
pub resolved_at: Option<String>,
}Expand description
One review comment, anchored to a diff line.
Anchor identity is (file, side, line) where file is the post-image
path (crate::diff::FileDiff::anchor_path). Comment identity is id —
anchors may collide (several comments on one line), ids may not.
Fields§
§id: StringCaller-supplied unique id — the comment’s identity for upsert, delete, and import merging.
file: StringPost-image path of the file the comment anchors to.
side: SideWhich side of the diff line counts in.
line: u321-based line number on side.
text: StringThe comment body, verbatim; may span multiple lines.
created_at: StringCreation time, RFC 3339 UTC, caller-supplied; part of the stable sort order so threads on one line read chronologically.
updated_at: StringLast-edit time, RFC 3339 UTC, caller-supplied; drives merge conflict resolution (newer wins).
resolved_at: Option<String>When the comment was resolved, RFC 3339 UTC, caller-supplied. Present = resolved; absent (and omitted from JSON) = open. Reopening removes it. Absent from v1 documents, which parse as all-open.