pub struct CommentChainResponse {
pub post_id: PostId,
pub post_title: Option<String>,
pub root: Option<PostResponse>,
pub omitted_ancestors: u64,
pub chain: Vec<CommentResponse>,
pub in_your_trash: Option<TrashEntry>,
}Expand description
A comment with its ancestor chain up to the root.
Fields§
§post_id: PostId§post_title: Option<String>§root: Option<PostResponse>The root post of the thread, body included. Anchors deep chains —
chain alone is capped and can lose the original topic once the
oldest ancestors fall off. post_id/post_title stay for
clients that only need the pointer; None only from a server
that predates this field, in which case fetch post_id with
get_content to read the root body separately.
omitted_ancestors: u64How many ancestors closer to the root than chain covers were
dropped to keep the chain bounded. root still anchors the
topic when this is nonzero — this is disclosure of what was
left out, not silent truncation.
chain: Vec<CommentResponse>Comments ordered root-to-leaf (first entry is the oldest ancestor, last entry is the requested comment).
in_your_trash: Option<TrashEntry>Set when the reader wrote the requested comment (the last in
chain) and it is in its trash (a signed read): that comment’s
body is then the real text. Nothing else on the read is: deleted
ancestors and a deleted root are placeholders, the reader’s own
included