Skip to main content

EditReport

Struct EditReport 

Source
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: u32

Wire schema version; must equal SCHEMA_VERSION.

§ok: bool

Every operation succeeded.

§source_sha256: String

SHA-256 of the bytes handed in.

§base_sha256: String

SHA-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: bool

The plan carried a source_sha256 that was verified.

§author: String

Revision and comment author.

§date: String

Revision and comment timestamp used.

§existing_revisions: ExistingRevisions

Policy that was applied.

§resolved_revisions: ResolvedRevisions

Changes 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: ParagraphDelta

Body paragraph count before and after.

§operations: Vec<EditOutcome>

One outcome per operation, in plan order.

§comments_added: usize

Comments written by this plan.

§revisions: RevisionCounts

Zero until the redline exists (a preview never compares).

§fields: Vec<FieldUpdate>

Fields whose results update_fields wrote into the clean copy.

§skipped: usize

Operations --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§

Source§

impl EditReport

Source

pub fn to_jsonl(&self) -> String

JSON lines an agent can append to its own log: load, one op per operation, summary.

Trait Implementations§

Source§

impl Clone for EditReport

Source§

fn clone(&self) -> EditReport

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EditReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for EditReport

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<EditReport, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for EditReport

Source§

impl PartialEq for EditReport

Source§

fn eq(&self, other: &EditReport) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for EditReport

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for EditReport

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.