Skip to main content

DocApiDiff

Struct DocApiDiff 

Source
pub struct DocApiDiff<'a, I: Invoker> { /* private fields */ }

Implementations§

Source§

impl<'a, I: Invoker> DocApiDiff<'a, I>

Source

pub fn new(invoker: &'a I) -> Self

Source

pub fn apply<'call>( &'call self, params: &'call DocDiffApplyBoundParams, ) -> impl Future<Output = Result<DocDiffApplyResult>> + Send + 'call

Apply a previously computed diff payload to the current document. The document fingerprint must match the diff base fingerprint. Omitted changeMode applies story content directly; explicit tracked mode governs all four story families (body, header/footer parts, footnotes, endnotes). Comments, styles, and numbering are always applied directly. Supported mixed full-diff payloads apply atomically across body, comments, styles, numbering, and header/footers. Unsupported/deferred families such as package-graph/media/hyperlink closure, settings/theme, and textboxes fail closed before mutation.

Source

pub async fn apply_with_options( &self, params: &DocDiffApplyBoundParams, options: InvokeOptions, ) -> Result<DocDiffApplyResult>

Apply a previously computed diff payload to the current document. The document fingerprint must match the diff base fingerprint. Omitted changeMode applies story content directly; explicit tracked mode governs all four story families (body, header/footer parts, footnotes, endnotes). Comments, styles, and numbering are always applied directly. Supported mixed full-diff payloads apply atomically across body, comments, styles, numbering, and header/footers. Unsupported/deferred families such as package-graph/media/hyperlink closure, settings/theme, and textboxes fail closed before mutation.

Source

pub fn capture<'call>( &'call self, params: &'call DocDiffCaptureBoundParams, ) -> impl Future<Output = Result<DocDiffCaptureResult>> + Send + 'call

Capture the current document’s diffable state as a versioned snapshot. v2 capture requires source-complete state and reports coverage for body, comments, styles, numbering, and header/footers, with extended family coverage carried in the opaque payload. Legacy body-only v2 artifacts remain accepted for compare/apply compatibility.

Source

pub async fn capture_with_options( &self, params: &DocDiffCaptureBoundParams, options: InvokeOptions, ) -> Result<DocDiffCaptureResult>

Capture the current document’s diffable state as a versioned snapshot. v2 capture requires source-complete state and reports coverage for body, comments, styles, numbering, and header/footers, with extended family coverage carried in the opaque payload. Legacy body-only v2 artifacts remain accepted for compare/apply compatibility.

Source

pub fn compare<'call>( &'call self, params: &'call DocDiffCompareBoundParams, ) -> impl Future<Output = Result<DocDiffCompareResult>> + Send + 'call

Compare the current document (base) against a previously captured target snapshot. Returns a versioned diff payload whose summary reports which components changed: body, comments, styles, numbering, header/footers, and parts.

Source

pub async fn compare_with_options( &self, params: &DocDiffCompareBoundParams, options: InvokeOptions, ) -> Result<DocDiffCompareResult>

Compare the current document (base) against a previously captured target snapshot. Returns a versioned diff payload whose summary reports which components changed: body, comments, styles, numbering, header/footers, and parts.

Auto Trait Implementations§

§

impl<'a, I> Freeze for DocApiDiff<'a, I>
where &'a I: Freeze,

§

impl<'a, I> RefUnwindSafe for DocApiDiff<'a, I>

§

impl<'a, I> Send for DocApiDiff<'a, I>
where &'a I: Send,

§

impl<'a, I> Sync for DocApiDiff<'a, I>
where &'a I: Sync,

§

impl<'a, I> Unpin for DocApiDiff<'a, I>
where &'a I: Unpin,

§

impl<'a, I> UnsafeUnpin for DocApiDiff<'a, I>

§

impl<'a, I> UnwindSafe for DocApiDiff<'a, I>

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<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> Same for T

Source§

type Output = T

Should always be Self
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.