Struct roctogen::endpoints::reactions::Reactions[][src]

pub struct Reactions<'api> { /* fields omitted */ }

Implementations

impl<'api> Reactions<'api>[src]

pub async fn create_for_commit_comment_async(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    body: PostReactionsCreateForCommitComment
) -> Result<Reaction, ReactionsCreateForCommitCommentError>
[src]


Create reaction for a commit comment

Create a reaction to a commit comment. A response with an HTTP 200 status means that you already added the reaction type to this commit comment.

GitHub API docs for create_for_commit_comment

The create_for_commit_comment_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn create_for_commit_comment(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    body: PostReactionsCreateForCommitComment
) -> Result<Reaction, ReactionsCreateForCommitCommentError>
[src]


Create reaction for a commit comment

Create a reaction to a commit comment. A response with an HTTP 200 status means that you already added the reaction type to this commit comment.

GitHub API docs for create_for_commit_comment

The create_for_commit_comment endpoint is enabled with the squirrel-girl cargo feature.


pub async fn create_for_issue_async(
    &self,
    owner: &str,
    repo: &str,
    issue_number: i32,
    body: PostReactionsCreateForIssue
) -> Result<Reaction, ReactionsCreateForIssueError>
[src]


Create reaction for an issue

Create a reaction to an issue. A response with an HTTP 200 status means that you already added the reaction type to this issue.

GitHub API docs for create_for_issue

The create_for_issue_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn create_for_issue(
    &self,
    owner: &str,
    repo: &str,
    issue_number: i32,
    body: PostReactionsCreateForIssue
) -> Result<Reaction, ReactionsCreateForIssueError>
[src]


Create reaction for an issue

Create a reaction to an issue. A response with an HTTP 200 status means that you already added the reaction type to this issue.

GitHub API docs for create_for_issue

The create_for_issue endpoint is enabled with the squirrel-girl cargo feature.


pub async fn create_for_issue_comment_async(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    body: PostReactionsCreateForIssueComment
) -> Result<Reaction, ReactionsCreateForIssueCommentError>
[src]


Create reaction for an issue comment

Create a reaction to an issue comment. A response with an HTTP 200 status means that you already added the reaction type to this issue comment.

GitHub API docs for create_for_issue_comment

The create_for_issue_comment_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn create_for_issue_comment(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    body: PostReactionsCreateForIssueComment
) -> Result<Reaction, ReactionsCreateForIssueCommentError>
[src]


Create reaction for an issue comment

Create a reaction to an issue comment. A response with an HTTP 200 status means that you already added the reaction type to this issue comment.

GitHub API docs for create_for_issue_comment

The create_for_issue_comment endpoint is enabled with the squirrel-girl cargo feature.


pub async fn create_for_pull_request_review_comment_async(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    body: PostReactionsCreateForPullRequestReviewComment
) -> Result<Reaction, ReactionsCreateForPullRequestReviewCommentError>
[src]


Create reaction for a pull request review comment

Create a reaction to a pull request review comment. A response with an HTTP 200 status means that you already added the reaction type to this pull request review comment.

GitHub API docs for create_for_pull_request_review_comment

The create_for_pull_request_review_comment_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn create_for_pull_request_review_comment(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    body: PostReactionsCreateForPullRequestReviewComment
) -> Result<Reaction, ReactionsCreateForPullRequestReviewCommentError>
[src]


Create reaction for a pull request review comment

Create a reaction to a pull request review comment. A response with an HTTP 200 status means that you already added the reaction type to this pull request review comment.

GitHub API docs for create_for_pull_request_review_comment

The create_for_pull_request_review_comment endpoint is enabled with the squirrel-girl cargo feature.


pub async fn create_for_team_discussion_comment_in_org_async(
    &self,
    org: &str,
    team_slug: &str,
    discussion_number: i32,
    comment_number: i32,
    body: PostReactionsCreateForTeamDiscussionCommentInOrg
) -> Result<Reaction, ReactionsCreateForTeamDiscussionCommentInOrgError>
[src]


Create reaction for a team discussion comment

Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion scope. A response with an HTTP 200 status means that you already added the reaction type to this team discussion comment.

Note: You can also specify a team by org_id and team_id using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions.

GitHub API docs for create_for_team_discussion_comment_in_org

The create_for_team_discussion_comment_in_org_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn create_for_team_discussion_comment_in_org(
    &self,
    org: &str,
    team_slug: &str,
    discussion_number: i32,
    comment_number: i32,
    body: PostReactionsCreateForTeamDiscussionCommentInOrg
) -> Result<Reaction, ReactionsCreateForTeamDiscussionCommentInOrgError>
[src]


Create reaction for a team discussion comment

Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion scope. A response with an HTTP 200 status means that you already added the reaction type to this team discussion comment.

Note: You can also specify a team by org_id and team_id using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions.

GitHub API docs for create_for_team_discussion_comment_in_org

The create_for_team_discussion_comment_in_org endpoint is enabled with the squirrel-girl cargo feature.


pub async fn create_for_team_discussion_comment_legacy_async(
    &self,
    team_id: i32,
    discussion_number: i32,
    comment_number: i32,
    body: PostReactionsCreateForTeamDiscussionCommentLegacy
) -> Result<Reaction, ReactionsCreateForTeamDiscussionCommentLegacyError>
[src]


Create reaction for a team discussion comment (Legacy)

Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new “Create reaction for a team discussion comment” endpoint.

Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion scope. A response with an HTTP 200 status means that you already added the reaction type to this team discussion comment.

GitHub API docs for create_for_team_discussion_comment_legacy

The create_for_team_discussion_comment_legacy_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn create_for_team_discussion_comment_legacy(
    &self,
    team_id: i32,
    discussion_number: i32,
    comment_number: i32,
    body: PostReactionsCreateForTeamDiscussionCommentLegacy
) -> Result<Reaction, ReactionsCreateForTeamDiscussionCommentLegacyError>
[src]


Create reaction for a team discussion comment (Legacy)

Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new “Create reaction for a team discussion comment” endpoint.

Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion scope. A response with an HTTP 200 status means that you already added the reaction type to this team discussion comment.

GitHub API docs for create_for_team_discussion_comment_legacy

The create_for_team_discussion_comment_legacy endpoint is enabled with the squirrel-girl cargo feature.


pub async fn create_for_team_discussion_in_org_async(
    &self,
    org: &str,
    team_slug: &str,
    discussion_number: i32,
    body: PostReactionsCreateForTeamDiscussionInOrg
) -> Result<Reaction, ReactionsCreateForTeamDiscussionInOrgError>
[src]


Create reaction for a team discussion

Create a reaction to a team discussion. OAuth access tokens require the write:discussion scope. A response with an HTTP 200 status means that you already added the reaction type to this team discussion.

Note: You can also specify a team by org_id and team_id using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions.

GitHub API docs for create_for_team_discussion_in_org

The create_for_team_discussion_in_org_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn create_for_team_discussion_in_org(
    &self,
    org: &str,
    team_slug: &str,
    discussion_number: i32,
    body: PostReactionsCreateForTeamDiscussionInOrg
) -> Result<Reaction, ReactionsCreateForTeamDiscussionInOrgError>
[src]


Create reaction for a team discussion

Create a reaction to a team discussion. OAuth access tokens require the write:discussion scope. A response with an HTTP 200 status means that you already added the reaction type to this team discussion.

Note: You can also specify a team by org_id and team_id using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions.

GitHub API docs for create_for_team_discussion_in_org

The create_for_team_discussion_in_org endpoint is enabled with the squirrel-girl cargo feature.


pub async fn create_for_team_discussion_legacy_async(
    &self,
    team_id: i32,
    discussion_number: i32,
    body: PostReactionsCreateForTeamDiscussionLegacy
) -> Result<Reaction, ReactionsCreateForTeamDiscussionLegacyError>
[src]


Create reaction for a team discussion (Legacy)

Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion endpoint.

Create a reaction to a team discussion. OAuth access tokens require the write:discussion scope. A response with an HTTP 200 status means that you already added the reaction type to this team discussion.

GitHub API docs for create_for_team_discussion_legacy

The create_for_team_discussion_legacy_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn create_for_team_discussion_legacy(
    &self,
    team_id: i32,
    discussion_number: i32,
    body: PostReactionsCreateForTeamDiscussionLegacy
) -> Result<Reaction, ReactionsCreateForTeamDiscussionLegacyError>
[src]


Create reaction for a team discussion (Legacy)

Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion endpoint.

Create a reaction to a team discussion. OAuth access tokens require the write:discussion scope. A response with an HTTP 200 status means that you already added the reaction type to this team discussion.

GitHub API docs for create_for_team_discussion_legacy

The create_for_team_discussion_legacy endpoint is enabled with the squirrel-girl cargo feature.


pub async fn delete_for_commit_comment_async(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    reaction_id: i32
) -> Result<(), ReactionsDeleteForCommitCommentError>
[src]


Delete a commit comment reaction

Note: You can also specify a repository by repository_id using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id.

Delete a reaction to a commit comment.

GitHub API docs for delete_for_commit_comment

The delete_for_commit_comment_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn delete_for_commit_comment(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    reaction_id: i32
) -> Result<(), ReactionsDeleteForCommitCommentError>
[src]


Delete a commit comment reaction

Note: You can also specify a repository by repository_id using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id.

Delete a reaction to a commit comment.

GitHub API docs for delete_for_commit_comment

The delete_for_commit_comment endpoint is enabled with the squirrel-girl cargo feature.


pub async fn delete_for_issue_async(
    &self,
    owner: &str,
    repo: &str,
    issue_number: i32,
    reaction_id: i32
) -> Result<(), ReactionsDeleteForIssueError>
[src]


Delete an issue reaction

Note: You can also specify a repository by repository_id using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id.

Delete a reaction to an issue.

GitHub API docs for delete_for_issue

The delete_for_issue_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn delete_for_issue(
    &self,
    owner: &str,
    repo: &str,
    issue_number: i32,
    reaction_id: i32
) -> Result<(), ReactionsDeleteForIssueError>
[src]


Delete an issue reaction

Note: You can also specify a repository by repository_id using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id.

Delete a reaction to an issue.

GitHub API docs for delete_for_issue

The delete_for_issue endpoint is enabled with the squirrel-girl cargo feature.


pub async fn delete_for_issue_comment_async(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    reaction_id: i32
) -> Result<(), ReactionsDeleteForIssueCommentError>
[src]


Delete an issue comment reaction

Note: You can also specify a repository by repository_id using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id.

Delete a reaction to an issue comment.

GitHub API docs for delete_for_issue_comment

The delete_for_issue_comment_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn delete_for_issue_comment(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    reaction_id: i32
) -> Result<(), ReactionsDeleteForIssueCommentError>
[src]


Delete an issue comment reaction

Note: You can also specify a repository by repository_id using the route DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id.

Delete a reaction to an issue comment.

GitHub API docs for delete_for_issue_comment

The delete_for_issue_comment endpoint is enabled with the squirrel-girl cargo feature.


pub async fn delete_for_pull_request_comment_async(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    reaction_id: i32
) -> Result<(), ReactionsDeleteForPullRequestCommentError>
[src]


Delete a pull request comment reaction

Note: You can also specify a repository by repository_id using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.

Delete a reaction to a pull request review comment.

GitHub API docs for delete_for_pull_request_comment

The delete_for_pull_request_comment_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn delete_for_pull_request_comment(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    reaction_id: i32
) -> Result<(), ReactionsDeleteForPullRequestCommentError>
[src]


Delete a pull request comment reaction

Note: You can also specify a repository by repository_id using the route DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.

Delete a reaction to a pull request review comment.

GitHub API docs for delete_for_pull_request_comment

The delete_for_pull_request_comment endpoint is enabled with the squirrel-girl cargo feature.


pub async fn delete_for_team_discussion_async(
    &self,
    org: &str,
    team_slug: &str,
    discussion_number: i32,
    reaction_id: i32
) -> Result<(), ReactionsDeleteForTeamDiscussionError>
[src]


Delete team discussion reaction

Note: You can also specify a team or organization with team_id and org_id using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id.

Delete a reaction to a team discussion. OAuth access tokens require the write:discussion scope.

GitHub API docs for delete_for_team_discussion

The delete_for_team_discussion_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn delete_for_team_discussion(
    &self,
    org: &str,
    team_slug: &str,
    discussion_number: i32,
    reaction_id: i32
) -> Result<(), ReactionsDeleteForTeamDiscussionError>
[src]


Delete team discussion reaction

Note: You can also specify a team or organization with team_id and org_id using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id.

Delete a reaction to a team discussion. OAuth access tokens require the write:discussion scope.

GitHub API docs for delete_for_team_discussion

The delete_for_team_discussion endpoint is enabled with the squirrel-girl cargo feature.


pub async fn delete_for_team_discussion_comment_async(
    &self,
    org: &str,
    team_slug: &str,
    discussion_number: i32,
    comment_number: i32,
    reaction_id: i32
) -> Result<(), ReactionsDeleteForTeamDiscussionCommentError>
[src]


Delete team discussion comment reaction

Note: You can also specify a team or organization with team_id and org_id using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id.

Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion scope.

GitHub API docs for delete_for_team_discussion_comment

The delete_for_team_discussion_comment_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn delete_for_team_discussion_comment(
    &self,
    org: &str,
    team_slug: &str,
    discussion_number: i32,
    comment_number: i32,
    reaction_id: i32
) -> Result<(), ReactionsDeleteForTeamDiscussionCommentError>
[src]


Delete team discussion comment reaction

Note: You can also specify a team or organization with team_id and org_id using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id.

Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion scope.

GitHub API docs for delete_for_team_discussion_comment

The delete_for_team_discussion_comment endpoint is enabled with the squirrel-girl cargo feature.


pub async fn delete_legacy_async(
    &self,
    reaction_id: i32
) -> Result<(), ReactionsDeleteLegacyError>
[src]


Delete a reaction (Legacy)

Deprecation Notice: This endpoint route is deprecated and will be removed from the Reactions API. We recommend migrating your existing code to use the new delete reactions endpoints. For more information, see this blog post.

OAuth access tokens require the write:discussion scope, when deleting a team discussion or team discussion comment.

GitHub API docs for delete_legacy

The delete_legacy_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn delete_legacy(
    &self,
    reaction_id: i32
) -> Result<(), ReactionsDeleteLegacyError>
[src]


Delete a reaction (Legacy)

Deprecation Notice: This endpoint route is deprecated and will be removed from the Reactions API. We recommend migrating your existing code to use the new delete reactions endpoints. For more information, see this blog post.

OAuth access tokens require the write:discussion scope, when deleting a team discussion or team discussion comment.

GitHub API docs for delete_legacy

The delete_legacy endpoint is enabled with the squirrel-girl cargo feature.


pub async fn list_for_commit_comment_async(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    query_params: Option<impl Into<ReactionsListForCommitCommentParams<'api>>>
) -> Result<Vec<Reaction>, ReactionsListForCommitCommentError>
[src]


List reactions for a commit comment

List the reactions to a commit comment.

GitHub API docs for list_for_commit_comment

The list_for_commit_comment_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn list_for_commit_comment(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    query_params: Option<impl Into<ReactionsListForCommitCommentParams<'api>>>
) -> Result<Vec<Reaction>, ReactionsListForCommitCommentError>
[src]


List reactions for a commit comment

List the reactions to a commit comment.

GitHub API docs for list_for_commit_comment

The list_for_commit_comment endpoint is enabled with the squirrel-girl cargo feature.


pub async fn list_for_issue_async(
    &self,
    owner: &str,
    repo: &str,
    issue_number: i32,
    query_params: Option<impl Into<ReactionsListForIssueParams<'api>>>
) -> Result<Vec<Reaction>, ReactionsListForIssueError>
[src]


List reactions for an issue

List the reactions to an issue.

GitHub API docs for list_for_issue

The list_for_issue_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn list_for_issue(
    &self,
    owner: &str,
    repo: &str,
    issue_number: i32,
    query_params: Option<impl Into<ReactionsListForIssueParams<'api>>>
) -> Result<Vec<Reaction>, ReactionsListForIssueError>
[src]


List reactions for an issue

List the reactions to an issue.

GitHub API docs for list_for_issue

The list_for_issue endpoint is enabled with the squirrel-girl cargo feature.


pub async fn list_for_issue_comment_async(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    query_params: Option<impl Into<ReactionsListForIssueCommentParams<'api>>>
) -> Result<Vec<Reaction>, ReactionsListForIssueCommentError>
[src]


List reactions for an issue comment

List the reactions to an issue comment.

GitHub API docs for list_for_issue_comment

The list_for_issue_comment_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn list_for_issue_comment(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    query_params: Option<impl Into<ReactionsListForIssueCommentParams<'api>>>
) -> Result<Vec<Reaction>, ReactionsListForIssueCommentError>
[src]


List reactions for an issue comment

List the reactions to an issue comment.

GitHub API docs for list_for_issue_comment

The list_for_issue_comment endpoint is enabled with the squirrel-girl cargo feature.


pub async fn list_for_pull_request_review_comment_async(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    query_params: Option<impl Into<ReactionsListForPullRequestReviewCommentParams<'api>>>
) -> Result<Vec<Reaction>, ReactionsListForPullRequestReviewCommentError>
[src]


List reactions for a pull request review comment

List the reactions to a pull request review comment.

GitHub API docs for list_for_pull_request_review_comment

The list_for_pull_request_review_comment_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn list_for_pull_request_review_comment(
    &self,
    owner: &str,
    repo: &str,
    comment_id: i32,
    query_params: Option<impl Into<ReactionsListForPullRequestReviewCommentParams<'api>>>
) -> Result<Vec<Reaction>, ReactionsListForPullRequestReviewCommentError>
[src]


List reactions for a pull request review comment

List the reactions to a pull request review comment.

GitHub API docs for list_for_pull_request_review_comment

The list_for_pull_request_review_comment endpoint is enabled with the squirrel-girl cargo feature.


pub async fn list_for_team_discussion_comment_in_org_async(
    &self,
    org: &str,
    team_slug: &str,
    discussion_number: i32,
    comment_number: i32,
    query_params: Option<impl Into<ReactionsListForTeamDiscussionCommentInOrgParams<'api>>>
) -> Result<Vec<Reaction>, ReactionsListForTeamDiscussionCommentInOrgError>
[src]


List reactions for a team discussion comment

List the reactions to a team discussion comment. OAuth access tokens require the read:discussion scope.

Note: You can also specify a team by org_id and team_id using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions.

GitHub API docs for list_for_team_discussion_comment_in_org

The list_for_team_discussion_comment_in_org_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn list_for_team_discussion_comment_in_org(
    &self,
    org: &str,
    team_slug: &str,
    discussion_number: i32,
    comment_number: i32,
    query_params: Option<impl Into<ReactionsListForTeamDiscussionCommentInOrgParams<'api>>>
) -> Result<Vec<Reaction>, ReactionsListForTeamDiscussionCommentInOrgError>
[src]


List reactions for a team discussion comment

List the reactions to a team discussion comment. OAuth access tokens require the read:discussion scope.

Note: You can also specify a team by org_id and team_id using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions.

GitHub API docs for list_for_team_discussion_comment_in_org

The list_for_team_discussion_comment_in_org endpoint is enabled with the squirrel-girl cargo feature.


pub async fn list_for_team_discussion_comment_legacy_async(
    &self,
    team_id: i32,
    discussion_number: i32,
    comment_number: i32,
    query_params: Option<impl Into<ReactionsListForTeamDiscussionCommentLegacyParams<'api>>>
) -> Result<Vec<Reaction>, ReactionsListForTeamDiscussionCommentLegacyError>
[src]


List reactions for a team discussion comment (Legacy)

Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment endpoint.

List the reactions to a team discussion comment. OAuth access tokens require the read:discussion scope.

GitHub API docs for list_for_team_discussion_comment_legacy

The list_for_team_discussion_comment_legacy_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn list_for_team_discussion_comment_legacy(
    &self,
    team_id: i32,
    discussion_number: i32,
    comment_number: i32,
    query_params: Option<impl Into<ReactionsListForTeamDiscussionCommentLegacyParams<'api>>>
) -> Result<Vec<Reaction>, ReactionsListForTeamDiscussionCommentLegacyError>
[src]


List reactions for a team discussion comment (Legacy)

Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment endpoint.

List the reactions to a team discussion comment. OAuth access tokens require the read:discussion scope.

GitHub API docs for list_for_team_discussion_comment_legacy

The list_for_team_discussion_comment_legacy endpoint is enabled with the squirrel-girl cargo feature.


pub async fn list_for_team_discussion_in_org_async(
    &self,
    org: &str,
    team_slug: &str,
    discussion_number: i32,
    query_params: Option<impl Into<ReactionsListForTeamDiscussionInOrgParams<'api>>>
) -> Result<Vec<Reaction>, ReactionsListForTeamDiscussionInOrgError>
[src]


List reactions for a team discussion

List the reactions to a team discussion. OAuth access tokens require the read:discussion scope.

Note: You can also specify a team by org_id and team_id using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions.

GitHub API docs for list_for_team_discussion_in_org

The list_for_team_discussion_in_org_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn list_for_team_discussion_in_org(
    &self,
    org: &str,
    team_slug: &str,
    discussion_number: i32,
    query_params: Option<impl Into<ReactionsListForTeamDiscussionInOrgParams<'api>>>
) -> Result<Vec<Reaction>, ReactionsListForTeamDiscussionInOrgError>
[src]


List reactions for a team discussion

List the reactions to a team discussion. OAuth access tokens require the read:discussion scope.

Note: You can also specify a team by org_id and team_id using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions.

GitHub API docs for list_for_team_discussion_in_org

The list_for_team_discussion_in_org endpoint is enabled with the squirrel-girl cargo feature.


pub async fn list_for_team_discussion_legacy_async(
    &self,
    team_id: i32,
    discussion_number: i32,
    query_params: Option<impl Into<ReactionsListForTeamDiscussionLegacyParams<'api>>>
) -> Result<Vec<Reaction>, ReactionsListForTeamDiscussionLegacyError>
[src]


List reactions for a team discussion (Legacy)

Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion endpoint.

List the reactions to a team discussion. OAuth access tokens require the read:discussion scope.

GitHub API docs for list_for_team_discussion_legacy

The list_for_team_discussion_legacy_async endpoint is enabled with the squirrel-girl cargo feature.


pub fn list_for_team_discussion_legacy(
    &self,
    team_id: i32,
    discussion_number: i32,
    query_params: Option<impl Into<ReactionsListForTeamDiscussionLegacyParams<'api>>>
) -> Result<Vec<Reaction>, ReactionsListForTeamDiscussionLegacyError>
[src]


List reactions for a team discussion (Legacy)

Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion endpoint.

List the reactions to a team discussion. OAuth access tokens require the read:discussion scope.

GitHub API docs for list_for_team_discussion_legacy

The list_for_team_discussion_legacy endpoint is enabled with the squirrel-girl cargo feature.


Auto Trait Implementations

impl<'api> RefUnwindSafe for Reactions<'api>

impl<'api> Send for Reactions<'api>

impl<'api> Sync for Reactions<'api>

impl<'api> Unpin for Reactions<'api>

impl<'api> UnwindSafe for Reactions<'api>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.