pub struct DocApiProtection<'a, I: Invoker> { /* private fields */ }Implementations§
Source§impl<'a, I: Invoker> DocApiProtection<'a, I>
impl<'a, I: Invoker> DocApiProtection<'a, I>
pub fn new(invoker: &'a I) -> Self
Sourcepub fn clear_editing_restriction<'call>(
&'call self,
params: &'call DocProtectionClearEditingRestrictionBoundParams,
) -> impl Future<Output = Result<DocProtectionClearEditingRestrictionResult>> + Send + 'call
pub fn clear_editing_restriction<'call>( &'call self, params: &'call DocProtectionClearEditingRestrictionBoundParams, ) -> impl Future<Output = Result<DocProtectionClearEditingRestrictionResult>> + Send + 'call
Disable document-level editing restriction by setting enforcement to off. Preserves the protection element and its metadata for round-trip fidelity.
Sourcepub async fn clear_editing_restriction_with_options(
&self,
params: &DocProtectionClearEditingRestrictionBoundParams,
options: InvokeOptions,
) -> Result<DocProtectionClearEditingRestrictionResult>
pub async fn clear_editing_restriction_with_options( &self, params: &DocProtectionClearEditingRestrictionBoundParams, options: InvokeOptions, ) -> Result<DocProtectionClearEditingRestrictionResult>
Disable document-level editing restriction by setting enforcement to off. Preserves the protection element and its metadata for round-trip fidelity.
Sourcepub fn get<'call>(
&'call self,
params: &'call DocProtectionGetBoundParams,
) -> impl Future<Output = Result<DocProtectionGetResult>> + Send + 'call
pub fn get<'call>( &'call self, params: &'call DocProtectionGetBoundParams, ) -> impl Future<Output = Result<DocProtectionGetResult>> + Send + 'call
Read the current document protection state including editing restrictions, write protection, and read-only recommendation.
Sourcepub async fn get_with_options(
&self,
params: &DocProtectionGetBoundParams,
options: InvokeOptions,
) -> Result<DocProtectionGetResult>
pub async fn get_with_options( &self, params: &DocProtectionGetBoundParams, options: InvokeOptions, ) -> Result<DocProtectionGetResult>
Read the current document protection state including editing restrictions, write protection, and read-only recommendation.
Sourcepub fn set_editing_restriction<'call>(
&'call self,
params: &'call DocProtectionSetEditingRestrictionBoundParams,
) -> impl Future<Output = Result<DocProtectionSetEditingRestrictionResult>> + Send + 'call
pub fn set_editing_restriction<'call>( &'call self, params: &'call DocProtectionSetEditingRestrictionBoundParams, ) -> impl Future<Output = Result<DocProtectionSetEditingRestrictionResult>> + Send + 'call
Author a Word readOnly, comments, trackedChanges, or forms restriction. Inspect runtimeEnforced in the returned state: V2 currently enforces readOnly; the other modes are saved for Word and are not enforced in SuperDoc.
Sourcepub async fn set_editing_restriction_with_options(
&self,
params: &DocProtectionSetEditingRestrictionBoundParams,
options: InvokeOptions,
) -> Result<DocProtectionSetEditingRestrictionResult>
pub async fn set_editing_restriction_with_options( &self, params: &DocProtectionSetEditingRestrictionBoundParams, options: InvokeOptions, ) -> Result<DocProtectionSetEditingRestrictionResult>
Author a Word readOnly, comments, trackedChanges, or forms restriction. Inspect runtimeEnforced in the returned state: V2 currently enforces readOnly; the other modes are saved for Word and are not enforced in SuperDoc.