pub struct PostsReactionsPersonsResource<'a> { /* private fields */ }Expand description
client.posts().reactions().persons()
Implementations§
Source§impl<'a> PostsReactionsPersonsResource<'a>
impl<'a> PostsReactionsPersonsResource<'a>
Sourcepub fn delete(
&self,
post_id: impl Display,
emoji: impl Display,
person_id: impl Display,
) -> Result<()>
pub fn delete( &self, post_id: impl Display, emoji: impl Display, person_id: impl Display, ) -> Result<()>
DELETE /posts/{postId}/reactions/{emoji}/persons/{personId}
Delete a reaction of a person for a post.
§Example
client.posts().reactions().persons().delete(42, "👍", "abc123")?;Sourcepub fn update(
&self,
post_id: impl Display,
emoji: impl Display,
person_id: impl Display,
) -> Result<PostReaction>
pub fn update( &self, post_id: impl Display, emoji: impl Display, person_id: impl Display, ) -> Result<PostReaction>
PUT /posts/{postId}/reactions/{emoji}/persons/{personId}
Create a new reaction of a person for a post.
§Example
let result = client.posts().reactions().persons().update(42, "👍", "abc123")?;
println!("{}", result.emoji);Trait Implementations§
Source§impl<'a> Clone for PostsReactionsPersonsResource<'a>
impl<'a> Clone for PostsReactionsPersonsResource<'a>
impl<'a> Copy for PostsReactionsPersonsResource<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PostsReactionsPersonsResource<'a>
impl<'a> !UnwindSafe for PostsReactionsPersonsResource<'a>
impl<'a> Freeze for PostsReactionsPersonsResource<'a>
impl<'a> Send for PostsReactionsPersonsResource<'a>
impl<'a> Sync for PostsReactionsPersonsResource<'a>
impl<'a> Unpin for PostsReactionsPersonsResource<'a>
impl<'a> UnsafeUnpin for PostsReactionsPersonsResource<'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