pub struct ResolvedChanges {
pub document: Vec<u8>,
pub removed_comments: Vec<CommentRecord>,
pub removed_why: Vec<String>,
pub comment_changes_left: usize,
pub kept_comments: Vec<KeptComment>,
}Expand description
A resolved document and the comments removed with its revisions.
Fields§
§document: Vec<u8>The document after resolving the selected changes.
removed_comments: Vec<CommentRecord>Removed comments, including replies, with their original ids and text.
Surviving comments keep their ids in document (#1264).
removed_why: Vec<String>Why each of removed_comments went, in its order: anchor removed by accepting r13, naming the change that held its mark, or its
thread root’s (#1159).
comment_changes_left: usizeTracked changes still inside comment bodies after the resolution.
An id, author or kind selection names them as comments.rN; one
that does not name them leaves them tracked (#1706, #1223).
kept_comments: Vec<KeptComment>Threads rescued onto empty anchors, in source comment ids; the CLI’s
--keep-nested-comment opt-in (#1279). Empty when settlement
removed the threads (Word’s behaviour, and the default).
Trait Implementations§
Source§impl Clone for ResolvedChanges
impl Clone for ResolvedChanges
Source§fn clone(&self) -> ResolvedChanges
fn clone(&self) -> ResolvedChanges
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more