Skip to main content

DocApiComments

Struct DocApiComments 

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

Implementations§

Source§

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

Source

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

Source

pub fn create<'call>( &'call self, params: &'call DocCommentsCreateBoundParams, ) -> impl Future<Output = Result<DocCommentsCreateResult>> + Send + 'call

Create a new comment thread (or reply when parentCommentId is given). Accepts TextAddress / TextTarget anchors, or a TrackedChangeCommentTarget that names a logical tracked-change id. The tracked-change target accepts both the explicit kind form and the Labs-compatible trackedChangeId-only form; the adapter normalizes it to a Word-compatible content anchor on the requested revision side. Callers may supply a durable externalId, or use the v1-compatible caller-supplied commentId alias, plus author fields and arbitrary JSON metadata for integration correlation. The caller-owned id remains distinct from the generated Word-compatible commentId.

Source

pub async fn create_with_options( &self, params: &DocCommentsCreateBoundParams, options: InvokeOptions, ) -> Result<DocCommentsCreateResult>

Create a new comment thread (or reply when parentCommentId is given). Accepts TextAddress / TextTarget anchors, or a TrackedChangeCommentTarget that names a logical tracked-change id. The tracked-change target accepts both the explicit kind form and the Labs-compatible trackedChangeId-only form; the adapter normalizes it to a Word-compatible content anchor on the requested revision side. Callers may supply a durable externalId, or use the v1-compatible caller-supplied commentId alias, plus author fields and arbitrary JSON metadata for integration correlation. The caller-owned id remains distinct from the generated Word-compatible commentId.

Source

pub fn delete<'call>( &'call self, params: &'call DocCommentsDeleteBoundParams, ) -> impl Future<Output = Result<DocCommentsDeleteResult>> + Send + 'call

Remove the targeted comment or reply by ID. Deleting a root does not delete descendant replies.

Source

pub async fn delete_with_options( &self, params: &DocCommentsDeleteBoundParams, options: InvokeOptions, ) -> Result<DocCommentsDeleteResult>

Remove the targeted comment or reply by ID. Deleting a root does not delete descendant replies.

Source

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

Retrieve a single comment thread by ID.

Source

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

Retrieve a single comment thread by ID.

Source

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

List all comment threads in the document.

Source

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

List all comment threads in the document.

Source

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

Patch exactly one field on an existing comment (text, target, status, or isInternal). The target branch accepts a plain TextAddress or a TrackedChangeCommentTarget, with or without kind: "trackedChange", that names a logical tracked-change id. The legacy isInternal input sets or clears the sdcom:internal attribute for v1 backward compatibility. Multi-field patches and no-op edits are rejected with INVALID_INPUT; reply target / status patches are rejected with INVALID_CONTEXT.

Source

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

Patch exactly one field on an existing comment (text, target, status, or isInternal). The target branch accepts a plain TextAddress or a TrackedChangeCommentTarget, with or without kind: "trackedChange", that names a logical tracked-change id. The legacy isInternal input sets or clears the sdcom:internal attribute for v1 backward compatibility. Multi-field patches and no-op edits are rejected with INVALID_INPUT; reply target / status patches are rejected with INVALID_CONTEXT.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

§

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