pub struct DocApiTrackChanges<'a, I: Invoker> { /* private fields */ }Implementations§
Source§impl<'a, I: Invoker> DocApiTrackChanges<'a, I>
impl<'a, I: Invoker> DocApiTrackChanges<'a, I>
pub fn new(invoker: &'a I) -> Self
Sourcepub fn decide<'call>(
&'call self,
params: &'call DocTrackChangesDecideBoundParams,
) -> impl Future<Output = Result<DocTrackChangesDecideResult>> + Send + 'call
pub fn decide<'call>( &'call self, params: &'call DocTrackChangesDecideBoundParams, ) -> impl Future<Output = Result<DocTrackChangesDecideResult>> + Send + 'call
Accept or reject tracked changes by logical id, by several logical ids atomically, by selected text range, by logical anchor range ({ anchor, relativeStart, relativeEnd }), or every active change in the document. Range targets may include overlap / side selectors and may partially resolve a change, splitting surviving content into new fragments with stable ids. Legacy { id, range: { kind: "partial", ... } } targets are promoted only when the active adapter supports decide(); legacy fallback adapters fail closed with INVALID_INPUT. input.expectedRevision is accepted as a compatibility alias for mutation options.
Sourcepub async fn decide_with_options(
&self,
params: &DocTrackChangesDecideBoundParams,
options: InvokeOptions,
) -> Result<DocTrackChangesDecideResult>
pub async fn decide_with_options( &self, params: &DocTrackChangesDecideBoundParams, options: InvokeOptions, ) -> Result<DocTrackChangesDecideResult>
Accept or reject tracked changes by logical id, by several logical ids atomically, by selected text range, by logical anchor range ({ anchor, relativeStart, relativeEnd }), or every active change in the document. Range targets may include overlap / side selectors and may partially resolve a change, splitting surviving content into new fragments with stable ids. Legacy { id, range: { kind: "partial", ... } } targets are promoted only when the active adapter supports decide(); legacy fallback adapters fail closed with INVALID_INPUT. input.expectedRevision is accepted as a compatibility alias for mutation options.
Sourcepub fn get<'call>(
&'call self,
params: &'call DocTrackChangesGetBoundParams,
) -> impl Future<Output = Result<DocTrackChangesGetResult>> + Send + 'call
pub fn get<'call>( &'call self, params: &'call DocTrackChangesGetBoundParams, ) -> impl Future<Output = Result<DocTrackChangesGetResult>> + Send + 'call
Retrieve a single tracked change by SuperDoc logical id.
Sourcepub async fn get_with_options(
&self,
params: &DocTrackChangesGetBoundParams,
options: InvokeOptions,
) -> Result<DocTrackChangesGetResult>
pub async fn get_with_options( &self, params: &DocTrackChangesGetBoundParams, options: InvokeOptions, ) -> Result<DocTrackChangesGetResult>
Retrieve a single tracked change by SuperDoc logical id.
Sourcepub fn list<'call>(
&'call self,
params: &'call DocTrackChangesListBoundParams,
) -> impl Future<Output = Result<DocTrackChangesListResult>> + Send + 'call
pub fn list<'call>( &'call self, params: &'call DocTrackChangesListBoundParams, ) -> impl Future<Output = Result<DocTrackChangesListResult>> + Send + 'call
List tracked changes in the document. Body-only by default; pass in: <StoryLocator> or in: "all" to widen scope.
Sourcepub async fn list_with_options(
&self,
params: &DocTrackChangesListBoundParams,
options: InvokeOptions,
) -> Result<DocTrackChangesListResult>
pub async fn list_with_options( &self, params: &DocTrackChangesListBoundParams, options: InvokeOptions, ) -> Result<DocTrackChangesListResult>
List tracked changes in the document. Body-only by default; pass in: <StoryLocator> or in: "all" to widen scope.