pub struct EditReport {Show 22 fields
pub schema_version: u32,
pub ok: bool,
pub source_sha256: String,
pub base_sha256: String,
pub guarded: bool,
pub author: String,
pub date: String,
pub existing_revisions: ExistingRevisions,
pub resolved_revisions: ResolvedRevisions,
pub removed_comments: Vec<RemovedComment>,
pub clean_removed_comments: Vec<RemovedComment>,
pub kept_comments: Vec<KeptComment>,
pub paragraph_ids: Vec<ParagraphMove>,
pub split_revisions: Vec<RevisionSplit>,
pub paragraphs: ParagraphDelta,
pub operations: Vec<EditOutcome>,
pub comments_added: usize,
pub revisions: RevisionCounts,
pub fields: Vec<FieldUpdate>,
pub skipped: usize,
pub notes: Vec<String>,
pub output_sha256: Option<String>,
}Expand description
What happened, per operation and overall.
Fields§
§schema_version: u32Wire schema version; must equal SCHEMA_VERSION.
ok: boolEvery operation succeeded.
source_sha256: StringSHA-256 of the bytes handed in.
base_sha256: StringSHA-256 of the base the plan edited. It differs from source_sha256
when existing revisions were flattened first, and when a repeated
permission id was normalized on a revision-free source.
guarded: boolThe plan carried a source_sha256 that was verified.
Revision and comment author.
date: StringRevision and comment timestamp used.
existing_revisions: ExistingRevisionsPolicy that was applied.
resolved_revisions: ResolvedRevisionsChanges resolve_revisions accepted and rejected.
removed_comments: Vec<RemovedComment>Threads removed with the settled text, in source comment ids.
clean_removed_comments: Vec<RemovedComment>Threads the clean copy drops that the redline still carries, in source comment ids. Editing mode publishes that copy, so its receipt names these. Suggesting mode keeps them on the redline.
kept_comments: Vec<KeptComment>Threads moved onto empty anchors by opt-in settlement, excluding comments and replies subsequently deleted by the plan.
paragraph_ids: Vec<ParagraphMove>Source paragraph ids that name another paragraph once the plan’s
revisions are settled (resolve_revisions, existing_revisions
accept or reject), in source order. Operations still address the
source’s ids; the output documents carry these.
split_revisions: Vec<RevisionSplit>Other authors’ insertions the redline splits, by source id.
paragraphs: ParagraphDeltaBody paragraph count before and after.
operations: Vec<EditOutcome>One outcome per operation, in plan order.
comments_added: usizeComments written by this plan.
revisions: RevisionCountsZero until the redline exists (a preview never compares).
fields: Vec<FieldUpdate>Fields whose results update_fields wrote into the clean copy.
skipped: usizeOperations --skip-failed left out (status skipped); ok is
false whenever one was.
notes: Vec<String>What the plan said that jubarte read another way (anchor read as
find, …): the CLI prints each as a note: line.
output_sha256: Option<String>SHA-256 of the document written, set by whoever writes it (the CLI): the bytes a follow-up plan binds to.
Implementations§
Trait Implementations§
Source§impl Clone for EditReport
impl Clone for EditReport
Source§fn clone(&self) -> EditReport
fn clone(&self) -> EditReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EditReport
impl Debug for EditReport
Source§impl<'de> Deserialize<'de> for EditReport
impl<'de> Deserialize<'de> for EditReport
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EditReport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EditReport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for EditReport
Source§impl PartialEq for EditReport
impl PartialEq for EditReport
Source§impl Serialize for EditReport
impl Serialize for EditReport
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for EditReport
Auto Trait Implementations§
impl Forget for EditReport
impl Freeze for EditReport
impl Move for EditReport
impl RefUnwindSafe for EditReport
impl Send for EditReport
impl Sync for EditReport
impl Unpin for EditReport
impl UnsafeUnpin for EditReport
impl UnwindSafe for EditReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.