Skip to main content

DocApiMutations

Struct DocApiMutations 

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

Implementations§

Source§

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

Source

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

Source

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

Execute a mutation plan atomically against the document.

Source

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

Execute a mutation plan atomically against the document.

Source

pub fn begin_temporary<'call>( &'call self, params: &'call DocMutationsBeginTemporaryBoundParams, ) -> impl Future<Output = Result<DocMutationsBeginTemporaryResult>> + Send + 'call

Apply temporary text and review operations without changing undo history.

Source

pub async fn begin_temporary_with_options( &self, params: &DocMutationsBeginTemporaryBoundParams, options: InvokeOptions, ) -> Result<DocMutationsBeginTemporaryResult>

Apply temporary text and review operations without changing undo history.

Source

pub fn commit_temporary<'call>( &'call self, params: &'call DocMutationsCommitTemporaryBoundParams, ) -> impl Future<Output = Result<DocMutationsCommitTemporaryResult>> + Send + 'call

Commit the visible temporary preview as one undo entry, optionally applying final operations atomically.

Source

pub async fn commit_temporary_with_options( &self, params: &DocMutationsCommitTemporaryBoundParams, options: InvokeOptions, ) -> Result<DocMutationsCommitTemporaryResult>

Commit the visible temporary preview as one undo entry, optionally applying final operations atomically.

Source

pub fn preview<'call>( &'call self, params: &'call DocMutationsPreviewBoundParams, ) -> impl Future<Output = Result<DocMutationsPreviewResult>> + Send + 'call

Dry-run a mutation plan, returning resolved targets without applying changes.

Source

pub async fn preview_with_options( &self, params: &DocMutationsPreviewBoundParams, options: InvokeOptions, ) -> Result<DocMutationsPreviewResult>

Dry-run a mutation plan, returning resolved targets without applying changes.

Source

pub fn replace_temporary<'call>( &'call self, params: &'call DocMutationsReplaceTemporaryBoundParams, ) -> impl Future<Output = Result<DocMutationsReplaceTemporaryResult>> + Send + 'call

Replace an active temporary preview against its original document state.

Source

pub async fn replace_temporary_with_options( &self, params: &DocMutationsReplaceTemporaryBoundParams, options: InvokeOptions, ) -> Result<DocMutationsReplaceTemporaryResult>

Replace an active temporary preview against its original document state.

Source

pub fn rollback_temporary<'call>( &'call self, params: &'call DocMutationsRollbackTemporaryBoundParams, ) -> impl Future<Output = Result<DocMutationsRollbackTemporaryResult>> + Send + 'call

Restore the original document and release a temporary preview.

Source

pub async fn rollback_temporary_with_options( &self, params: &DocMutationsRollbackTemporaryBoundParams, options: InvokeOptions, ) -> Result<DocMutationsRollbackTemporaryResult>

Restore the original document and release a temporary preview.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

§

impl<'a, I> UnwindSafe for DocApiMutations<'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.