pub struct Counts {
pub requested_operations: usize,
pub unchanged_operations: usize,
pub body_operations_applied: usize,
pub review_operations_applied: usize,
pub revisions_accepted: usize,
pub revisions_rejected: usize,
pub logical_revisions: usize,
pub revision_xml_entries: usize,
pub comment_threads: usize,
pub comment_replies: usize,
pub comments_added: usize,
}Expand description
Counts of operations, revisions and comments. The four categories the proposal names (operations, logical revisions, revision XML entries, comments) stay distinct in the schema; aggregate counts are deliberately absent so a reader cannot accidentally conflate them.
Every field is optional in the JSON; unset zero fields are skipped.
Fields§
§requested_operations: usizeTotal operations the request named.
unchanged_operations: usizeOperations whose effect on the body was a no-op (e.g. a rewrite
row whose text matched the verified baseline exactly).
body_operations_applied: usizeBody operations that applied a real edit.
review_operations_applied: usizeReview operations that applied (accept, reject, comment, …).
revisions_accepted: usizeExisting revisions accepted by the request.
revisions_rejected: usizeExisting revisions rejected by the request.
logical_revisions: usizeLogical revision decisions: a move is one logical decision even though it spans two XML entries.
revision_xml_entries: usizeUnderlying XML <w:ins> / <w:del> carrier elements.
comment_threads: usizeRoot comment threads added or modified by the request.
comment_replies: usizeReplies added by the request.
comments_added: usizeSum of root comments added plus replies added; convenient for a reader that does not care about the breakdown.
Implementations§
Trait Implementations§
impl Copy for Counts
Source§impl<'de> Deserialize<'de> for Counts
impl<'de> Deserialize<'de> for Counts
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Counts, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Counts, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for Counts
Source§impl Serialize for Counts
impl Serialize for Counts
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 Counts
Auto Trait Implementations§
impl Forget for Counts
impl Freeze for Counts
impl Move for Counts
impl RefUnwindSafe for Counts
impl Send for Counts
impl Sync for Counts
impl Unpin for Counts
impl UnsafeUnpin for Counts
impl UnwindSafe for Counts
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.