Skip to main content

DocApiHyperlinks

Struct DocApiHyperlinks 

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

Implementations§

Source§

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

Source

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

Source

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

Retrieve details of a specific hyperlink by its inline address.

Source

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

Retrieve details of a specific hyperlink by its inline address.

Source

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

Insert new linked text at a target position.

Source

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

Insert new linked text at a target position.

Source

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

List the hyperlinks of one story, with optional filtering by href, anchor, or display text. The body is listed by default; pass in with a footnote or endnote story to list that note.

Source

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

List the hyperlinks of one story, with optional filtering by href, anchor, or display text. The body is listed by default; pass in with a footnote or endnote story to list that note.

Source

pub fn patch<'call>( &'call self, params: &'call DocHyperlinksPatchBoundParams, ) -> impl Future<Output = Result<DocHyperlinksPatchResult>> + Send + 'call

Update hyperlink metadata (destination, tooltip, target, rel) without changing display text.

Source

pub async fn patch_with_options( &self, params: &DocHyperlinksPatchBoundParams, options: InvokeOptions, ) -> Result<DocHyperlinksPatchResult>

Update hyperlink metadata (destination, tooltip, target, rel) without changing display text.

Source

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

Remove a hyperlink. Mode ‘unwrap’ preserves display text; ‘deleteText’ removes the linked content entirely.

Source

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

Remove a hyperlink. Mode ‘unwrap’ preserves display text; ‘deleteText’ removes the linked content entirely.

Source

pub fn wrap<'call>( &'call self, params: &'call DocHyperlinksWrapBoundParams, ) -> impl Future<Output = Result<DocHyperlinksWrapResult>> + Send + 'call

Wrap an existing text range with a hyperlink. A range inside one pending tracked insertion is linked without authoring a revision: the insertion keeps its author and date and is split at the range boundaries. Ranges that cross a revision boundary or touch deleted, moved or several revisions are refused.

Source

pub async fn wrap_with_options( &self, params: &DocHyperlinksWrapBoundParams, options: InvokeOptions, ) -> Result<DocHyperlinksWrapResult>

Wrap an existing text range with a hyperlink. A range inside one pending tracked insertion is linked without authoring a revision: the insertion keeps its author and date and is split at the range boundaries. Ranges that cross a revision boundary or touch deleted, moved or several revisions are refused.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

§

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