pub struct CommentsServiceClient<C> { /* private fields */ }Trait Implementations§
Source§impl<C: Clone> Clone for CommentsServiceClient<C>
impl<C: Clone> Clone for CommentsServiceClient<C>
Source§fn clone(&self) -> CommentsServiceClient<C>
fn clone(&self) -> CommentsServiceClient<C>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<I: Iterator<Item = Result<Bytes, Error>>, __C> CommentsService<I> for CommentsServiceClient<__C>where
__C: Client<ResponseBody = I>,
impl<I: Iterator<Item = Result<Bytes, Error>>, __C> CommentsService<I> for CommentsServiceClient<__C>where
__C: Client<ResponseBody = I>,
Source§fn get_conversation(
&self,
auth_: &BearerToken,
resource_type: &ResourceType,
resource_rid: &ResourceIdentifier,
) -> Result<Conversation, Error>
fn get_conversation( &self, auth_: &BearerToken, resource_type: &ResourceType, resource_rid: &ResourceIdentifier, ) -> Result<Conversation, Error>
A conversation is a fully resolved comment tree. It includes all comments for the given resource
and all the nested comments/replies to those comments.
Source§fn get_conversation_count(
&self,
auth_: &BearerToken,
resource_type: &ResourceType,
resource_rid: &ResourceIdentifier,
include_deleted: Option<bool>,
) -> Result<i32, Error>
fn get_conversation_count( &self, auth_: &BearerToken, resource_type: &ResourceType, resource_rid: &ResourceIdentifier, include_deleted: Option<bool>, ) -> Result<i32, Error>
Returns the number of comments in a conversation.
Source§fn get_comment(
&self,
auth_: &BearerToken,
comment_rid: &CommentRid,
) -> Result<Comment, Error>
fn get_comment( &self, auth_: &BearerToken, comment_rid: &CommentRid, ) -> Result<Comment, Error>
Get a comment identified by its RID
Source§fn create_comment(
&self,
auth_: &BearerToken,
request: &CreateCommentRequest,
) -> Result<Comment, Error>
fn create_comment( &self, auth_: &BearerToken, request: &CreateCommentRequest, ) -> Result<Comment, Error>
Create a comment on a resource
Source§fn edit_comment(
&self,
auth_: &BearerToken,
comment_rid: &CommentRid,
request: &EditCommentRequest,
) -> Result<Comment, Error>
fn edit_comment( &self, auth_: &BearerToken, comment_rid: &CommentRid, request: &EditCommentRequest, ) -> Result<Comment, Error>
Edit an existing comment
Source§fn delete_comment(
&self,
auth_: &BearerToken,
comment_rid: &CommentRid,
) -> Result<Comment, Error>
fn delete_comment( &self, auth_: &BearerToken, comment_rid: &CommentRid, ) -> Result<Comment, Error>
Delete an existing comment
Source§fn pin_comment(
&self,
auth_: &BearerToken,
comment_rid: &CommentRid,
) -> Result<Comment, Error>
fn pin_comment( &self, auth_: &BearerToken, comment_rid: &CommentRid, ) -> Result<Comment, Error>
Pin a comment to the top of the conversation
Source§fn unpin_comment(
&self,
auth_: &BearerToken,
comment_rid: &CommentRid,
) -> Result<Comment, Error>
fn unpin_comment( &self, auth_: &BearerToken, comment_rid: &CommentRid, ) -> Result<Comment, Error>
Unpin a comment from the top of the conversation
Source§fn add_reaction(
&self,
auth_: &BearerToken,
comment_rid: &CommentRid,
type_: &ReactionType,
) -> Result<Comment, Error>
fn add_reaction( &self, auth_: &BearerToken, comment_rid: &CommentRid, type_: &ReactionType, ) -> Result<Comment, Error>
Create a reaction on a comment
Source§fn remove_reaction(
&self,
auth_: &BearerToken,
comment_rid: &CommentRid,
type_: &ReactionType,
) -> Result<Comment, Error>
fn remove_reaction( &self, auth_: &BearerToken, comment_rid: &CommentRid, type_: &ReactionType, ) -> Result<Comment, Error>
Create a reaction on a comment
Source§impl<C: Debug> Debug for CommentsServiceClient<C>
impl<C: Debug> Debug for CommentsServiceClient<C>
Source§impl<C> Service<C> for CommentsServiceClient<C>
impl<C> Service<C> for CommentsServiceClient<C>
Source§fn new(client: C, runtime: &Arc<ConjureRuntime>) -> Self
fn new(client: C, runtime: &Arc<ConjureRuntime>) -> Self
Creates a new service wrapping an HTTP client.
Auto Trait Implementations§
impl<C> Freeze for CommentsServiceClient<C>where
C: Freeze,
impl<C> !RefUnwindSafe for CommentsServiceClient<C>
impl<C> Send for CommentsServiceClient<C>where
C: Send,
impl<C> Sync for CommentsServiceClient<C>where
C: Sync,
impl<C> Unpin for CommentsServiceClient<C>where
C: Unpin,
impl<C> UnsafeUnpin for CommentsServiceClient<C>where
C: UnsafeUnpin,
impl<C> !UnwindSafe for CommentsServiceClient<C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request