Struct octorust::reactions::Reactions [−][src]
pub struct Reactions { /* fields omitted */ }
Implementations
List reactions for a team discussion comment.
This function performs a GET
to the /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions
endpoint.
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
.
FROM: https://docs.github.com/rest/reference/reactions#list-reactions-for-a-team-discussion-comment
Parameters:
org: &str
team_slug: &str
– team_slug parameter.discussion_number: i64
comment_number: i64
content: crate::types::Content
– Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.per_page: i64
– Results per page (max 100).page: i64
– Page number of the results to fetch.
List reactions for a team discussion comment.
This function performs a GET
to the /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions
endpoint.
As opposed to list_for_team_discussion_comment_in_org
, this function returns all the pages of the request at once.
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
.
FROM: https://docs.github.com/rest/reference/reactions#list-reactions-for-a-team-discussion-comment
pub async fn create_for_team_discussion_comment_in_org(
&self,
org: &str,
team_slug: &str,
discussion_number: i64,
comment_number: i64,
body: &ReactionsCreateTeamDiscussionCommentInOrgRequest
) -> Result<Reaction>
pub async fn create_for_team_discussion_comment_in_org(
&self,
org: &str,
team_slug: &str,
discussion_number: i64,
comment_number: i64,
body: &ReactionsCreateTeamDiscussionCommentInOrgRequest
) -> Result<Reaction>
Create reaction for a team discussion comment.
This function performs a POST
to the /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions
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.
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
.
FROM: https://docs.github.com/rest/reference/reactions#create-reaction-for-a-team-discussion-comment
Parameters:
org: &str
team_slug: &str
– team_slug parameter.discussion_number: i64
comment_number: i64
Delete team discussion comment reaction.
This function performs a DELETE
to the /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}
endpoint.
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.
FROM: https://docs.github.com/rest/reference/reactions#delete-team-discussion-comment-reaction
Parameters:
org: &str
team_slug: &str
– team_slug parameter.discussion_number: i64
comment_number: i64
reaction_id: i64
List reactions for a team discussion.
This function performs a GET
to the /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions
endpoint.
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
.
FROM: https://docs.github.com/rest/reference/reactions#list-reactions-for-a-team-discussion
Parameters:
org: &str
team_slug: &str
– team_slug parameter.discussion_number: i64
content: crate::types::Content
– Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.per_page: i64
– Results per page (max 100).page: i64
– Page number of the results to fetch.
List reactions for a team discussion.
This function performs a GET
to the /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions
endpoint.
As opposed to list_for_team_discussion_in_org
, this function returns all the pages of the request at once.
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
.
FROM: https://docs.github.com/rest/reference/reactions#list-reactions-for-a-team-discussion
pub async fn create_for_team_discussion_in_org(
&self,
org: &str,
team_slug: &str,
discussion_number: i64,
body: &ReactionsCreateTeamDiscussionInOrgRequest
) -> Result<Reaction>
pub async fn create_for_team_discussion_in_org(
&self,
org: &str,
team_slug: &str,
discussion_number: i64,
body: &ReactionsCreateTeamDiscussionInOrgRequest
) -> Result<Reaction>
Create reaction for a team discussion.
This function performs a POST
to the /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions
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.
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
.
FROM: https://docs.github.com/rest/reference/reactions#create-reaction-for-a-team-discussion
Parameters:
org: &str
team_slug: &str
– team_slug parameter.discussion_number: i64
Delete team discussion reaction.
This function performs a DELETE
to the /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}
endpoint.
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.
FROM: https://docs.github.com/rest/reference/reactions#delete-team-discussion-reaction
Parameters:
org: &str
team_slug: &str
– team_slug parameter.discussion_number: i64
reaction_id: i64
Delete a reaction (Legacy).
This function performs a DELETE
to the /reactions/{reaction_id}
endpoint.
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.
FROM: https://docs.github.com/rest/reference/reactions/#delete-a-reaction-legacy
Parameters:
reaction_id: i64
List reactions for a commit comment.
This function performs a GET
to the /repos/{owner}/{repo}/comments/{comment_id}/reactions
endpoint.
List the reactions to a commit comment.
FROM: https://docs.github.com/rest/reference/reactions#list-reactions-for-a-commit-comment
Parameters:
owner: &str
repo: &str
comment_id: i64
– comment_id parameter.content: crate::types::Content
– Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.per_page: i64
– Results per page (max 100).page: i64
– Page number of the results to fetch.
List reactions for a commit comment.
This function performs a GET
to the /repos/{owner}/{repo}/comments/{comment_id}/reactions
endpoint.
As opposed to list_for_commit_comment
, this function returns all the pages of the request at once.
List the reactions to a commit comment.
FROM: https://docs.github.com/rest/reference/reactions#list-reactions-for-a-commit-comment
pub async fn create_for_commit_comment(
&self,
owner: &str,
repo: &str,
comment_id: i64,
body: &ReactionsCreateCommitCommentRequest
) -> Result<Reaction>
pub async fn create_for_commit_comment(
&self,
owner: &str,
repo: &str,
comment_id: i64,
body: &ReactionsCreateCommitCommentRequest
) -> Result<Reaction>
Create reaction for a commit comment.
This function performs a POST
to the /repos/{owner}/{repo}/comments/{comment_id}/reactions
endpoint.
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.
FROM: https://docs.github.com/rest/reference/reactions#create-reaction-for-a-commit-comment
Parameters:
owner: &str
repo: &str
comment_id: i64
– comment_id parameter.
Delete a commit comment reaction.
This function performs a DELETE
to the /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}
endpoint.
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.
FROM: https://docs.github.com/rest/reference/reactions#delete-a-commit-comment-reaction
Parameters:
owner: &str
repo: &str
comment_id: i64
– comment_id parameter.reaction_id: i64
List reactions for an issue comment.
This function performs a GET
to the /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions
endpoint.
List the reactions to an issue comment.
FROM: https://docs.github.com/rest/reference/reactions#list-reactions-for-an-issue-comment
Parameters:
owner: &str
repo: &str
comment_id: i64
– comment_id parameter.content: crate::types::Content
– Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.per_page: i64
– Results per page (max 100).page: i64
– Page number of the results to fetch.
List reactions for an issue comment.
This function performs a GET
to the /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions
endpoint.
As opposed to list_for_issue_comment
, this function returns all the pages of the request at once.
List the reactions to an issue comment.
FROM: https://docs.github.com/rest/reference/reactions#list-reactions-for-an-issue-comment
pub async fn create_for_issue_comment(
&self,
owner: &str,
repo: &str,
comment_id: i64,
body: &ReactionsCreateIssueCommentRequest
) -> Result<Reaction>
pub async fn create_for_issue_comment(
&self,
owner: &str,
repo: &str,
comment_id: i64,
body: &ReactionsCreateIssueCommentRequest
) -> Result<Reaction>
Create reaction for an issue comment.
This function performs a POST
to the /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions
endpoint.
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.
FROM: https://docs.github.com/rest/reference/reactions#create-reaction-for-an-issue-comment
Parameters:
owner: &str
repo: &str
comment_id: i64
– comment_id parameter.
Delete an issue comment reaction.
This function performs a DELETE
to the /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}
endpoint.
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.
FROM: https://docs.github.com/rest/reference/reactions#delete-an-issue-comment-reaction
Parameters:
owner: &str
repo: &str
comment_id: i64
– comment_id parameter.reaction_id: i64
List reactions for an issue.
This function performs a GET
to the /repos/{owner}/{repo}/issues/{issue_number}/reactions
endpoint.
List the reactions to an issue.
FROM: https://docs.github.com/rest/reference/reactions#list-reactions-for-an-issue
Parameters:
owner: &str
repo: &str
issue_number: i64
– issue_number parameter.content: crate::types::Content
– Returns a single reaction type. Omit this parameter to list all reactions to an issue.per_page: i64
– Results per page (max 100).page: i64
– Page number of the results to fetch.
List reactions for an issue.
This function performs a GET
to the /repos/{owner}/{repo}/issues/{issue_number}/reactions
endpoint.
As opposed to list_for_issue
, this function returns all the pages of the request at once.
List the reactions to an issue.
FROM: https://docs.github.com/rest/reference/reactions#list-reactions-for-an-issue
pub async fn create_for_issue(
&self,
owner: &str,
repo: &str,
issue_number: i64,
body: &ReactionsCreateIssueRequest
) -> Result<Reaction>
pub async fn create_for_issue(
&self,
owner: &str,
repo: &str,
issue_number: i64,
body: &ReactionsCreateIssueRequest
) -> Result<Reaction>
Create reaction for an issue.
This function performs a POST
to the /repos/{owner}/{repo}/issues/{issue_number}/reactions
endpoint.
Create a reaction to an issue. A response with an HTTP 200
status means that you already added the reaction type to this issue.
FROM: https://docs.github.com/rest/reference/reactions#create-reaction-for-an-issue
Parameters:
owner: &str
repo: &str
issue_number: i64
– issue_number parameter.
Delete an issue reaction.
This function performs a DELETE
to the /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}
endpoint.
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.
FROM: https://docs.github.com/rest/reference/reactions#delete-an-issue-reaction
Parameters:
owner: &str
repo: &str
issue_number: i64
– issue_number parameter.reaction_id: i64
List reactions for a pull request review comment.
This function performs a GET
to the /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions
endpoint.
List the reactions to a pull request review comment.
FROM: https://docs.github.com/rest/reference/reactions#list-reactions-for-a-pull-request-review-comment
Parameters:
owner: &str
repo: &str
comment_id: i64
– comment_id parameter.content: crate::types::Content
– Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.per_page: i64
– Results per page (max 100).page: i64
– Page number of the results to fetch.
List reactions for a pull request review comment.
This function performs a GET
to the /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions
endpoint.
As opposed to list_for_pull_request_review_comment
, this function returns all the pages of the request at once.
List the reactions to a pull request review comment.
FROM: https://docs.github.com/rest/reference/reactions#list-reactions-for-a-pull-request-review-comment
pub async fn create_for_pull_request_review_comment(
&self,
owner: &str,
repo: &str,
comment_id: i64,
body: &ReactionsCreatePullRequestReviewComment
) -> Result<Reaction>
pub async fn create_for_pull_request_review_comment(
&self,
owner: &str,
repo: &str,
comment_id: i64,
body: &ReactionsCreatePullRequestReviewComment
) -> Result<Reaction>
Create reaction for a pull request review comment.
This function performs a POST
to the /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions
endpoint.
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.
FROM: https://docs.github.com/rest/reference/reactions#create-reaction-for-a-pull-request-review-comment
Parameters:
owner: &str
repo: &str
comment_id: i64
– comment_id parameter.
Delete a pull request comment reaction.
This function performs a DELETE
to the /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}
endpoint.
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.
FROM: https://docs.github.com/rest/reference/reactions#delete-a-pull-request-comment-reaction
Parameters:
owner: &str
repo: &str
comment_id: i64
– comment_id parameter.reaction_id: i64
pub async fn create_for_release(
&self,
owner: &str,
repo: &str,
release_id: i64,
body: &ReactionsCreateReleaseRequest
) -> Result<Reaction>
pub async fn create_for_release(
&self,
owner: &str,
repo: &str,
release_id: i64,
body: &ReactionsCreateReleaseRequest
) -> Result<Reaction>
Create reaction for a release.
This function performs a POST
to the /repos/{owner}/{repo}/releases/{release_id}/reactions
endpoint.
Create a reaction to a release. A response with a Status: 200 OK
means that you already added the reaction type to this release.
FROM: https://docs.github.com/rest/reference/reactions/#create-reaction-for-a-release
Parameters:
owner: &str
repo: &str
release_id: i64
– release_id parameter.
List reactions for a team discussion comment (Legacy).
This function performs a GET
to the /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions
endpoint.
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.
Parameters:
team_id: i64
discussion_number: i64
comment_number: i64
content: crate::types::Content
– Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.per_page: i64
– Results per page (max 100).page: i64
– Page number of the results to fetch.
List reactions for a team discussion comment (Legacy).
This function performs a GET
to the /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions
endpoint.
As opposed to list_for_team_discussion_comment_legacy
, this function returns all the pages of the request at once.
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.
pub async fn create_for_team_discussion_comment_legacy(
&self,
team_id: i64,
discussion_number: i64,
comment_number: i64,
body: &ReactionsCreateTeamDiscussionCommentInOrgRequest
) -> Result<Reaction>
pub async fn create_for_team_discussion_comment_legacy(
&self,
team_id: i64,
discussion_number: i64,
comment_number: i64,
body: &ReactionsCreateTeamDiscussionCommentInOrgRequest
) -> Result<Reaction>
Create reaction for a team discussion comment (Legacy).
This function performs a POST
to the /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions
endpoint.
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.
Parameters:
team_id: i64
discussion_number: i64
comment_number: i64
List reactions for a team discussion (Legacy).
This function performs a GET
to the /teams/{team_id}/discussions/{discussion_number}/reactions
endpoint.
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.
FROM: https://docs.github.com/rest/reference/reactions/#list-reactions-for-a-team-discussion-legacy
Parameters:
team_id: i64
discussion_number: i64
content: crate::types::Content
– Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.per_page: i64
– Results per page (max 100).page: i64
– Page number of the results to fetch.
List reactions for a team discussion (Legacy).
This function performs a GET
to the /teams/{team_id}/discussions/{discussion_number}/reactions
endpoint.
As opposed to list_for_team_discussion_legacy
, this function returns all the pages of the request at once.
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.
FROM: https://docs.github.com/rest/reference/reactions/#list-reactions-for-a-team-discussion-legacy
pub async fn create_for_team_discussion_legacy(
&self,
team_id: i64,
discussion_number: i64,
body: &ReactionsCreateTeamDiscussionInOrgRequest
) -> Result<Reaction>
pub async fn create_for_team_discussion_legacy(
&self,
team_id: i64,
discussion_number: i64,
body: &ReactionsCreateTeamDiscussionInOrgRequest
) -> Result<Reaction>
Create reaction for a team discussion (Legacy).
This function performs a POST
to the /teams/{team_id}/discussions/{discussion_number}/reactions
endpoint.
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.
FROM: https://docs.github.com/rest/reference/reactions/#create-reaction-for-a-team-discussion-legacy
Parameters:
team_id: i64
discussion_number: i64