pub struct DocApiExport<'a, I: Invoker> { /* private fields */ }Implementations§
Source§impl<'a, I: Invoker> DocApiExport<'a, I>
impl<'a, I: Invoker> DocApiExport<'a, I>
pub fn new(invoker: &'a I) -> Self
Sourcepub fn to_docx<'call>(
&'call self,
params: &'call DocExportToDocxBoundParams,
) -> impl Future<Output = Result<DocExportToDocxResult>> + Send + 'call
pub fn to_docx<'call>( &'call self, params: &'call DocExportToDocxBoundParams, ) -> impl Future<Output = Result<DocExportToDocxResult>> + Send + 'call
Serialize a copy of the current document with independent policies for trackedChanges (review-preserving, final, original), comments (preserve, resolve, remove), and contentControls (preserve, flatten). Defaults preserve all three. Resolve closes every open comment thread in the copy. The mode alias selects trackedChanges; conflicting values and unknown policies reject with INVALID_INPUT. Unsupported revision semantics, loss of preserved comment anchors, and collaborative Document API export reject with CAPABILITY_UNSUPPORTED before returning bytes. Use browser export for collaborative sessions. Returns exported bytes and a structured report of allowed warnings without changing the live document.
Sourcepub async fn to_docx_with_options(
&self,
params: &DocExportToDocxBoundParams,
options: InvokeOptions,
) -> Result<DocExportToDocxResult>
pub async fn to_docx_with_options( &self, params: &DocExportToDocxBoundParams, options: InvokeOptions, ) -> Result<DocExportToDocxResult>
Serialize a copy of the current document with independent policies for trackedChanges (review-preserving, final, original), comments (preserve, resolve, remove), and contentControls (preserve, flatten). Defaults preserve all three. Resolve closes every open comment thread in the copy. The mode alias selects trackedChanges; conflicting values and unknown policies reject with INVALID_INPUT. Unsupported revision semantics, loss of preserved comment anchors, and collaborative Document API export reject with CAPABILITY_UNSUPPORTED before returning bytes. Use browser export for collaborative sessions. Returns exported bytes and a structured report of allowed warnings without changing the live document.