Skip to main content

DocApiWatermarks

Struct DocApiWatermarks 

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

Implementations§

Source§

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

Source

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

Source

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

Atomically insert, replace, or remove selected watermarks in explicit scopes while preserving surrounding headers.

Source

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

Atomically insert, replace, or remove selected watermarks in explicit scopes while preserving surrounding headers.

Source

pub fn insert<'call>( &'call self, params: &'call DocWatermarksInsertBoundParams, ) -> impl Future<Output = Result<DocWatermarksInsertResult>> + Send + 'call

Insert a Word-compatible text or picture watermark into a header scope.

Source

pub async fn insert_with_options( &self, params: &DocWatermarksInsertBoundParams, options: InvokeOptions, ) -> Result<DocWatermarksInsertResult>

Insert a Word-compatible text or picture watermark into a header scope.

Source

pub fn list<'call>( &'call self, params: &'call DocWatermarksListBoundParams, ) -> impl Future<Output = Result<DocWatermarksListResult>> + Send + 'call

List Word-compatible text and picture watermarks and their effective header scopes.

Source

pub async fn list_with_options( &self, params: &DocWatermarksListBoundParams, options: InvokeOptions, ) -> Result<DocWatermarksListResult>

List Word-compatible text and picture watermarks and their effective header scopes.

Source

pub fn remove<'call>( &'call self, params: &'call DocWatermarksRemoveBoundParams, ) -> impl Future<Output = Result<DocWatermarksRemoveResult>> + Send + 'call

Remove a watermark without removing unrelated header content.

Source

pub async fn remove_with_options( &self, params: &DocWatermarksRemoveBoundParams, options: InvokeOptions, ) -> Result<DocWatermarksRemoveResult>

Remove a watermark without removing unrelated header content.

Source

pub fn replace<'call>( &'call self, params: &'call DocWatermarksReplaceBoundParams, ) -> impl Future<Output = Result<DocWatermarksReplaceResult>> + Send + 'call

Replace an existing watermark while retaining its stable identity and owner scope.

Source

pub async fn replace_with_options( &self, params: &DocWatermarksReplaceBoundParams, options: InvokeOptions, ) -> Result<DocWatermarksReplaceResult>

Replace an existing watermark while retaining its stable identity and owner scope.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

§

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