Skip to main content

DocApiToc

Struct DocApiToc 

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

Implementations§

Source§

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

Source

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

Source

pub fn configure<'call>( &'call self, params: &'call DocTocConfigureBoundParams, ) -> impl Future<Output = Result<DocTocConfigureResult>> + Send + 'call

Update the configuration switches of a table of contents.

Source

pub async fn configure_with_options( &self, params: &DocTocConfigureBoundParams, options: InvokeOptions, ) -> Result<DocTocConfigureResult>

Update the configuration switches of a table of contents.

Source

pub fn edit_entry<'call>( &'call self, params: &'call DocTocEditEntryBoundParams, ) -> impl Future<Output = Result<DocTocEditEntryResult>> + Send + 'call

Update the properties of a TC (table of contents entry) field.

Source

pub async fn edit_entry_with_options( &self, params: &DocTocEditEntryBoundParams, options: InvokeOptions, ) -> Result<DocTocEditEntryResult>

Update the properties of a TC (table of contents entry) field.

Source

pub fn get<'call>( &'call self, params: &'call DocTocGetBoundParams, ) -> impl Future<Output = Result<DocTocGetResult>> + Send + 'call

Retrieve details of a specific table of contents.

Source

pub async fn get_with_options( &self, params: &DocTocGetBoundParams, options: InvokeOptions, ) -> Result<DocTocGetResult>

Retrieve details of a specific table of contents.

Source

pub fn get_entry<'call>( &'call self, params: &'call DocTocGetEntryBoundParams, ) -> impl Future<Output = Result<DocTocGetEntryResult>> + Send + 'call

Retrieve details of a specific TC (table of contents entry) field.

Source

pub async fn get_entry_with_options( &self, params: &DocTocGetEntryBoundParams, options: InvokeOptions, ) -> Result<DocTocGetEntryResult>

Retrieve details of a specific TC (table of contents entry) field.

Source

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

List all tables of contents in the document.

Source

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

List all tables of contents in the document.

Source

pub fn list_entries<'call>( &'call self, params: &'call DocTocListEntriesBoundParams, ) -> impl Future<Output = Result<DocTocListEntriesResult>> + Send + 'call

List all TC (table of contents entry) fields in the document body.

Source

pub async fn list_entries_with_options( &self, params: &DocTocListEntriesBoundParams, options: InvokeOptions, ) -> Result<DocTocListEntriesResult>

List all TC (table of contents entry) fields in the document body.

Source

pub fn mark_entry<'call>( &'call self, params: &'call DocTocMarkEntryBoundParams, ) -> impl Future<Output = Result<DocTocMarkEntryResult>> + Send + 'call

Insert a TC (table of contents entry) field at the target paragraph.

Source

pub async fn mark_entry_with_options( &self, params: &DocTocMarkEntryBoundParams, options: InvokeOptions, ) -> Result<DocTocMarkEntryResult>

Insert a TC (table of contents entry) field at the target paragraph.

Source

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

Remove a table of contents from the document.

Source

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

Remove a table of contents from the document.

Source

pub fn unmark_entry<'call>( &'call self, params: &'call DocTocUnmarkEntryBoundParams, ) -> impl Future<Output = Result<DocTocUnmarkEntryResult>> + Send + 'call

Remove a TC (table of contents entry) field from the document.

Source

pub async fn unmark_entry_with_options( &self, params: &DocTocUnmarkEntryBoundParams, options: InvokeOptions, ) -> Result<DocTocUnmarkEntryResult>

Remove a TC (table of contents entry) field from the document.

Source

pub fn update<'call>( &'call self, params: &'call DocTocUpdateBoundParams, ) -> impl Future<Output = Result<DocTocUpdateResult>> + Send + 'call

Rebuild or refresh the materialized content of a table of contents.

Source

pub async fn update_with_options( &self, params: &DocTocUpdateBoundParams, options: InvokeOptions, ) -> Result<DocTocUpdateResult>

Rebuild or refresh the materialized content of a table of contents.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

§

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