pub struct ReactionsService<'a> { /* private fields */ }Expand description
The Reactions operations.
Implementations§
Source§impl<'a> ReactionsService<'a>
impl<'a> ReactionsService<'a>
Sourcepub async fn create_card(
&self,
card_number: i32,
body: &CreateCardReactionRequestContent,
) -> Result<Reaction, Error>
pub async fn create_card( &self, card_number: i32, body: &CreateCardReactionRequestContent, ) -> Result<Reaction, Error>
CreateCardReaction — POST /{accountId}/cards/{cardNumber}/reactions.json.
Sent once and never resent.
Sourcepub async fn create_comment(
&self,
card_number: i32,
comment_id: &str,
body: &CreateCommentReactionRequestContent,
) -> Result<Reaction, Error>
pub async fn create_comment( &self, card_number: i32, comment_id: &str, body: &CreateCommentReactionRequestContent, ) -> Result<Reaction, Error>
CreateCommentReaction — POST /{accountId}/cards/{cardNumber}/comments/{commentId}/reactions.json.
Sent once and never resent.
Sourcepub async fn delete_card(
&self,
card_number: i32,
reaction_id: &str,
) -> Result<(), Error>
pub async fn delete_card( &self, card_number: i32, reaction_id: &str, ) -> Result<(), Error>
DeleteCardReaction — DELETE /{accountId}/cards/{cardNumber}/reactions/{reactionId}.
Sent up to 3 times, backing off from 1000 ms, when the answer is 429, 500 or 503.
Sourcepub async fn delete_comment(
&self,
card_number: i32,
comment_id: &str,
reaction_id: &str,
) -> Result<(), Error>
pub async fn delete_comment( &self, card_number: i32, comment_id: &str, reaction_id: &str, ) -> Result<(), Error>
DeleteCommentReaction — DELETE /{accountId}/cards/{cardNumber}/comments/{commentId}/reactions/{reactionId}.
Sent up to 3 times, backing off from 1000 ms, when the answer is 429, 500 or 503.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ReactionsService<'a>
impl<'a> !UnwindSafe for ReactionsService<'a>
impl<'a> Freeze for ReactionsService<'a>
impl<'a> Send for ReactionsService<'a>
impl<'a> Sync for ReactionsService<'a>
impl<'a> Unpin for ReactionsService<'a>
impl<'a> UnsafeUnpin for ReactionsService<'a>
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