pub struct PushOutcome {
pub document: DocumentRef,
pub created: bool,
pub element_count: usize,
pub resolved: Vec<String>,
pub replied: usize,
pub body_updated: bool,
pub new_content: String,
}Expand description
The result of a push: the document reference, what changed, and the new file content the caller must persist.
Fields§
§document: DocumentRefThe (possibly newly created) target document.
created: boolWhether the document was created by this push.
element_count: usizeNumber of anchored elements projected (position-map size).
resolved: Vec<String>Comment ids that were resolved in Google this push.
replied: usizeNumber of operator-authored replies posted to Google this push.
body_updated: boolWhether the document body was (re)written this push. false when the
projection was unchanged since the last push, so the full-replace was
skipped to preserve existing comment anchors.
new_content: StringThe new file content to write back (body preserved, machine region rebuilt).
Trait Implementations§
Source§impl Clone for PushOutcome
impl Clone for PushOutcome
Source§fn clone(&self) -> PushOutcome
fn clone(&self) -> PushOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PushOutcome
impl RefUnwindSafe for PushOutcome
impl Send for PushOutcome
impl Sync for PushOutcome
impl Unpin for PushOutcome
impl UnsafeUnpin for PushOutcome
impl UnwindSafe for PushOutcome
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
Mutably borrows from an owned value. Read more