Skip to main content

Endpoint

Trait Endpoint 

Source
pub trait Endpoint {
    type Request: ApiRequest;
    type Response: ApiResource;

    const PATH: &'static str;
    const METHOD: Method;
}

Required Associated Constants§

Source

const PATH: &'static str

Source

const METHOD: Method

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Endpoint for AddOrganizationMember

Source§

const PATH: &'static str = "/organization/{org_name}/repositories"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = AddOrganizationMemberRequest

Source§

type Response = OrganizationMemberResource

Source§

impl Endpoint for AddReviewReviewer

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/review/{number}/reviewer"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = AddReviewReviewerRequest

Source§

type Response = ReviewerResource

Source§

impl Endpoint for AddUserEmail

Source§

const PATH: &'static str = "/auth/account/add-email"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = AddUserEmailRequest

Source§

type Response = ()

Source§

impl Endpoint for AuthorizeDevice

Source§

const PATH: &'static str = "/auth/device/authorize"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = AuthorizeDeviceRequest

Source§

type Response = ()

Source§

impl Endpoint for CreateAnswer

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/question/{number}/answer"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = CreateAnswerRequest

Source§

type Response = AnswerResource

Source§

impl Endpoint for CreateAnswerComment

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/question/{number}/answer/{answer_id}/comment"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = CreateAnswerCommentRequest

Source§

type Response = CommentResource

Source§

impl Endpoint for CreateBug

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/bugs"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = CreateBugRequest

Source§

type Response = BugResource

Source§

impl Endpoint for CreateBugComment

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/bugs/{number}/comment"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = CreateBugCommentRequest

Source§

type Response = CreateBugCommentResponse

Source§

impl Endpoint for CreateBuild

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/build"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = CreateBuildRequest

Source§

type Response = BuildResource

Source§

impl Endpoint for CreateDeviceCode

Source§

const PATH: &'static str = "/auth/device/code"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = CreateDeviceCodeRequest

Source§

type Response = DeviceCodeResource

Source§

impl Endpoint for CreateGitHubInstallation

Source§

const PATH: &'static str = "/migration/github/{installation_id}"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = CreateGitHubInstallationRequest

Source§

type Response = CreateGitHubInstallationResponse

Source§

impl Endpoint for CreateOrganization

Source§

const PATH: &'static str = "/organization/{org_name}"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = CreateOrganizationRequest

Source§

type Response = OrganizationResource

Source§

impl Endpoint for CreateQuestion

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/question"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = CreateQuestionRequest

Source§

type Response = QuestionResource

Source§

impl Endpoint for CreateQuestionComment

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/question/{number}/comment"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = CreateQuestionCommentRequest

Source§

type Response = CommentResource

Source§

impl Endpoint for CreateRepository

Source§

const PATH: &'static str = "/repository/{owner}/{repo}"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = CreateRepositoryRequest

Source§

type Response = RepositoryResource

Source§

impl Endpoint for CreateRepositoryCommitFilter

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/commit-filters"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = CreateRepositoryCommitFilterRequest

Source§

type Response = RepositoryCommitFilterResource

Source§

impl Endpoint for CreateRunner

Source§

const PATH: &'static str = "/ci/runner/{owner}"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = CreateRunnerRequest

Source§

type Response = RunnerResource

Source§

impl Endpoint for CreateRunnerToken

Source§

const PATH: &'static str = "/ci/runner/{owner}/{name}/token"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = ()

Source§

type Response = RunnerTokenResource

Source§

impl Endpoint for CreateWebhook

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/webhook"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = CreateWebhookRequest

Source§

type Response = WebhookResource

Source§

impl Endpoint for DeleteAccount

Source§

const PATH: &'static str = "/auth/account"

Source§

const METHOD: Method = http::Method::DELETE

Source§

type Request = DeleteAccountRequest

Source§

type Response = ()

Source§

impl Endpoint for DeleteRepository

Source§

const PATH: &'static str = "/repository/{owner}/{repo}"

Source§

const METHOD: Method = http::Method::DELETE

Source§

type Request = DeleteRepositoryRequest

Source§

type Response = ()

Source§

impl Endpoint for DeleteRepositoryCommitFilter

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/commit-filters/{filter_id}"

Source§

const METHOD: Method = http::Method::DELETE

Source§

type Request = DeleteRepositoryCommitFilterRequest

Source§

type Response = ()

Source§

impl Endpoint for DeleteRunner

Source§

const PATH: &'static str = "/ci/runner/{owner}/{name}"

Source§

const METHOD: Method = http::Method::DELETE

Source§

type Request = ()

Source§

type Response = ()

Source§

impl Endpoint for DeleteWebhook

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/webhook/{webhook_id}"

Source§

const METHOD: Method = http::Method::DELETE

Source§

type Request = DeleteWebhookRequest

Source§

type Response = ()

Source§

impl Endpoint for ExchangeGitHubCode

Source§

const PATH: &'static str = "/auth/github/exchange"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = ExchangeGitHubCodeRequest

Source§

type Response = AuthTokensResource

Source§

impl Endpoint for GetBug

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/bugs/{number}"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = GetBugRequest

Source§

type Response = BugResource

Source§

impl Endpoint for GetBuild

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/build/{number}"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = GetBuildRequest

Source§

type Response = BuildResource

Source§

impl Endpoint for GetCurrentUser

Source§

const PATH: &'static str = "/user"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = GetCurrentUserRequest

Source§

type Response = CurrentUserResource

Source§

impl Endpoint for GetGitHubAppInstallUrl

Source§

const PATH: &'static str = "/migration/github/install-url"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = GetGitHubAppInstallUrlRequest

Source§

type Response = GitHubAppInstallUrlResource

Source§

impl Endpoint for GetMigration

Source§

const PATH: &'static str = "/migration/{number}"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ()

Source§

type Response = MigrationResource

Source§

impl Endpoint for GetOrganization

Source§

const PATH: &'static str = "/organization/{org_name}"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = GetOrganizationRequest

Source§

type Response = OrganizationResource

Source§

impl Endpoint for GetQuestion

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/question/{number}"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = GetQuestionRequest

Source§

type Response = QuestionResource

Source§

impl Endpoint for GetRepository

Source§

const PATH: &'static str = "/repository/{owner}/{repo}"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = GetRepositoryRequest

Source§

type Response = RepositoryResource

Source§

impl Endpoint for GetRepositoryActivity

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/activity"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = GetRepositoryActivityRequest

Source§

type Response = Vec<RepositoryActivityEventResource>

Source§

impl Endpoint for GetRepositoryBlob

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/blob"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = GetRepositoryBlobRequest

Source§

type Response = RepositoryBlobResource

Source§

impl Endpoint for GetRepositoryBlobs

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/blobs"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = GetRepositoryBlobsRequest

Source§

type Response = RepositoryBlobsResource

Source§

impl Endpoint for GetRepositoryCommit

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/commits/{sha}"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = GetRepositoryCommitRequest

Source§

type Response = RepositoryCommitResource

Source§

impl Endpoint for GetRepositoryCommitBlobs

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/commits/{sha}/blobs"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = GetRepositoryCommitBlobsRequest

Source§

type Response = Vec<RepositoryBlobPairResource>

Source§

impl Endpoint for GetRepositoryPaths

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/paths"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = GetRepositoryPathsRequest

Source§

type Response = RepositoryPathsResource

Source§

impl Endpoint for GetRepositoryResources

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/resources"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = GetRepositoryResourcesRequest

Source§

type Response = RepositoryResourcesResource

Source§

impl Endpoint for GetReview

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/review/{number}"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = GetReviewRequest

Source§

type Response = ReviewResource

Source§

impl Endpoint for GetReviewDiffBlobs

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/review/{number}/diff/{position}/blobs"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = GetReviewDiffBlobsRequest

Source§

type Response = Vec<RepositoryBlobPairResource>

Source§

impl Endpoint for GetRunner

Source§

const PATH: &'static str = "/ci/runner/{owner}/{name}"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ()

Source§

type Response = RunnerResource

Source§

impl Endpoint for GetUser

Source§

const PATH: &'static str = "/user/{user_name}"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = GetUserRequest

Source§

type Response = UserResource

Source§

impl Endpoint for GetWebhook

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/webhook/{webhook_id}"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = GetWebhookRequest

Source§

type Response = WebhookResource

Source§

impl Endpoint for HasUser

Source§

const PATH: &'static str = "/user/{user_name}"

Source§

const METHOD: Method = http::Method::HEAD

Source§

type Request = HasUserApiRequest

Source§

type Response = ()

Source§

impl Endpoint for IssueTaskToken

Source§

const PATH: &'static str = "/ci/task/{id}/token"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = IssueTaskTokenRequest

Source§

type Response = TaskTokenResource

Source§

impl Endpoint for LinkSlackAccount

Source§

const PATH: &'static str = "/auth/slack/link"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = LinkSlackAccountRequest

Source§

type Response = SlackAccountResource

Source§

impl Endpoint for ListBugs

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/bugs"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListBugsRequest

Source§

type Response = Page<BugResource>

Source§

impl Endpoint for ListBuildTasks

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/build/{number}/tasks"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ()

Source§

type Response = Vec<TaskResource>

Source§

impl Endpoint for ListBuilds

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/builds"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListBuildsRequest

Source§

type Response = Page<BuildResource>

Source§

impl Endpoint for ListGitHubInstallationRepositories

Source§

const PATH: &'static str = "/migration/github/{installation_id}/repositories"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ()

Source§

type Response = Vec<GitHubRepositoryResource>

Source§

impl Endpoint for ListGitHubInstallations

Source§

const PATH: &'static str = "/migration/github/installations"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListGitHubInstallationsRequest

Source§

type Response = Page<GitHubInstallationResource>

Source§

impl Endpoint for ListLatestRepositories

Source§

const PATH: &'static str = "/repository/latest"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListLatestRepositoriesRequest

Source§

type Response = Vec<RepositoryResource>

Source§

impl Endpoint for ListMigrations

Source§

const PATH: &'static str = "/migrations"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListMigrationsRequest

Source§

type Response = Page<MigrationResource>

Source§

impl Endpoint for ListOrganizationRepositories

Source§

const PATH: &'static str = "/organization/{org_name}/repositories"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListOrganizationRepositoriesRequest

Source§

type Response = Page<RepositoryResource>

Source§

impl Endpoint for ListQuestions

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/questions"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListQuestionsRequest

Source§

type Response = Page<QuestionResource>

Source§

impl Endpoint for ListRepositoryCommitFilters

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/commit-filters"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListRepositoryCommitFiltersRequest

Source§

type Response = Page<RepositoryCommitFilterResource>

Source§

impl Endpoint for ListRepositoryCommits

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/commits"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListRepositoryCommitsRequest

Source§

type Response = Page<RepositoryCommitResource>

Source§

impl Endpoint for ListReviews

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/reviews"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListReviewsRequest

Source§

type Response = Page<ReviewResource>

Source§

impl Endpoint for ListRunners

Source§

const PATH: &'static str = "/ci/runner/{owner}"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListRunnersRequest

Source§

type Response = Page<RunnerResource>

Source§

impl Endpoint for ListTrendingRepositories

Source§

const PATH: &'static str = "/repository/trending"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListTrendingRepositoriesRequest

Source§

type Response = Vec<RepositoryResource>

Source§

impl Endpoint for ListUserCommits

Source§

const PATH: &'static str = "/user/{user_name}/commits"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListUserCommitsRequest

Source§

type Response = Page<UserCommitResource>

Source§

impl Endpoint for ListUserContributedRepositories

Source§

const PATH: &'static str = "/user/{user_name}/repositories-contributed"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListUserContributedRepositoriesRequest

Source§

type Response = Page<UserRepositoryResource>

Source§

impl Endpoint for ListUserMemberships

Source§

const PATH: &'static str = "/user/{user_name}/memberships"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListUserMembershipsRequest

Source§

type Response = Page<UserMembershipResource>

Source§

impl Endpoint for ListUserRepositories

Source§

const PATH: &'static str = "/user/{user_name}/repositories"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListUserRepositoriesRequest

Source§

type Response = Page<UserRepositoryResource>

Source§

impl Endpoint for ListUserReviews

Source§

const PATH: &'static str = "/user/{user_name}/reviews"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListUserReviewsRequest

Source§

type Response = Page<ReviewResource>

Source§

impl Endpoint for ListUserStarredRepositories

Source§

const PATH: &'static str = "/user/{user_name}/repositories-starred"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListUserStarredRepositoriesRequest

Source§

type Response = Page<UserRepositoryResource>

Source§

impl Endpoint for ListWebhooks

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/webhooks"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ListWebhooksRequest

Source§

type Response = Page<WebhookResource>

Source§

impl Endpoint for LogWebVital

Source§

const PATH: &'static str = "/metrics/web-vital"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = LogWebVitalRequest

Source§

type Response = ()

Source§

impl Endpoint for Logout

Source§

const PATH: &'static str = "/auth/logout"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = LogoutRequest

Source§

type Response = ()

Source§

impl Endpoint for MergeReviewDiff

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/review/{number}/diff/{position}/merge"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = MergeReviewDiffRequest

Source§

type Response = ReviewResource

Source§

impl Endpoint for MigrateGitHubRepositories

Source§

const PATH: &'static str = "/migration/github/{installation_id}/migrate"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = MigrateGitHubRepositoriesRequest

Source§

type Response = MigrationResource

Source§

impl Endpoint for PollTask

Source§

const PATH: &'static str = "/ci/task/poll"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ()

Source§

type Response = Option<PollTaskResource>

Source§

impl Endpoint for PollToken

Source§

const PATH: &'static str = "/auth/device/token"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = PollTokenRequest

Source§

type Response = TokenResource

Source§

impl Endpoint for PublishReview

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/review/{number}/publish"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = PublishReviewRequest

Source§

type Response = ()

Source§

impl Endpoint for PublishReviewDiff

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/review/{number}/diff/{position}/publish"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = PublishReviewDiffRequest

Source§

type Response = ReviewResource

Source§

impl Endpoint for RedirectToGitHubAuth

Source§

const PATH: &'static str = "/auth/github/redirect"

Source§

const METHOD: Method = http::Method::GET

Source§

type Request = ()

Source§

type Response = GitHubAuthRedirectResource

Source§

impl Endpoint for RefreshSession

Source§

const PATH: &'static str = "/auth/refresh"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = RefreshSessionRequest

Source§

type Response = AuthTokensResource

Source§

impl Endpoint for RemoveReviewReviewer

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/review/{number}/reviewer/{reviewer_name}"

Source§

const METHOD: Method = http::Method::DELETE

Source§

type Request = RemoveReviewerRequest

Source§

type Response = ()

Source§

impl Endpoint for ReplyToReviewComment

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/review/{number}/comment/{comment_id}/reply"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = ReplyToReviewCommentRequest

Source§

type Response = ReviewCommentResource

Source§

impl Endpoint for ResolveReviewComment

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/review/{number}/comment/{comment_id}/resolve"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = ResolveReviewCommentRequest

Source§

type Response = ReviewCommentResource

Source§

impl Endpoint for ReviewReviewDiff

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/review/{number}/diff/{position}/review"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = ReviewReviewDiffRequest

Source§

type Response = ReviewResource

Source§

impl Endpoint for SendAuthEmail

Source§

const PATH: &'static str = "/auth/email/send"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = SendAuthEmailRequest

Source§

type Response = ()

Source§

impl Endpoint for StarRepository

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/star"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = StarRepositoryRequest

Source§

type Response = ()

Source§

impl Endpoint for UnstarRepository

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/unstar"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = UnstarRepositoryRequest

Source§

type Response = ()

Source§

impl Endpoint for UpdateAnswer

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/question/{number}/answer/{answer_id}"

Source§

const METHOD: Method = http::Method::PATCH

Source§

type Request = UpdateAnswerRequest

Source§

type Response = AnswerResource

Source§

impl Endpoint for UpdateComment

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/question/{number}/comment/{comment_id}"

Source§

const METHOD: Method = http::Method::PATCH

Source§

type Request = UpdateCommentRequest

Source§

type Response = CommentResource

Source§

impl Endpoint for UpdateCurrentUser

Source§

const PATH: &'static str = "/user"

Source§

const METHOD: Method = http::Method::PATCH

Source§

type Request = UpdateCurrentUserRequest

Source§

type Response = UserResource

Source§

impl Endpoint for UpdateOrganization

Source§

const PATH: &'static str = "/organization/{org_name}"

Source§

const METHOD: Method = http::Method::PATCH

Source§

type Request = UpdateOrganizationRequest

Source§

type Response = OrganizationResource

Source§

impl Endpoint for UpdateOrganizationMember

Source§

const PATH: &'static str = "/organization/{org_name}/member/{member_id}"

Source§

const METHOD: Method = http::Method::PATCH

Source§

type Request = UpdateOrganizationMemberRequest

Source§

type Response = OrganizationMemberResource

Source§

impl Endpoint for UpdateQuestion

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/question/{number}"

Source§

const METHOD: Method = http::Method::PATCH

Source§

type Request = UpdateQuestionRequest

Source§

type Response = QuestionResource

Source§

impl Endpoint for UpdateRepository

Source§

const PATH: &'static str = "/repository/{owner}/{repo}"

Source§

const METHOD: Method = http::Method::PATCH

Source§

type Request = UpdateRepositoryRequest

Source§

type Response = RepositoryResource

Source§

impl Endpoint for UpdateRepositoryCommitFilter

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/commit-filters/{filter_id}"

Source§

const METHOD: Method = http::Method::PATCH

Source§

type Request = UpdateRepositoryCommitFilterRequest

Source§

type Response = RepositoryCommitFilterResource

Source§

impl Endpoint for UpdateReview

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/review/{number}"

Source§

const METHOD: Method = http::Method::PATCH

Source§

type Request = UpdateReviewRequest

Source§

type Response = ReviewResource

Source§

impl Endpoint for UpdateReviewComment

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/review/{number}/comment/{comment_id}"

Source§

const METHOD: Method = http::Method::PATCH

Source§

type Request = UpdateReviewCommentRequest

Source§

type Response = ReviewCommentResource

Source§

impl Endpoint for UpdateReviewDiff

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/review/{number}/diff/{position}"

Source§

const METHOD: Method = http::Method::PATCH

Source§

type Request = UpdateReviewDiffRequest

Source§

type Response = ReviewResource

Source§

impl Endpoint for UpdateTask

Source§

const PATH: &'static str = "/ci/task/{id}"

Source§

const METHOD: Method = http::Method::PATCH

Source§

type Request = UpdateTaskRequest

Source§

type Response = TaskResource

Source§

impl Endpoint for UpdateWebhook

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/webhook/{webhook_id}"

Source§

const METHOD: Method = http::Method::PATCH

Source§

type Request = UpdateWebhookRequest

Source§

type Response = WebhookResource

Source§

impl Endpoint for UploadOrganizationImage

Source§

const PATH: &'static str = "/organization/{org_name}/image"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = ()

Source§

type Response = ()

Source§

impl Endpoint for UploadUserImage

Source§

const PATH: &'static str = "/user/image"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = ()

Source§

type Response = ()

Source§

impl Endpoint for VerifyAuthCode

Source§

const PATH: &'static str = "/auth/email/verify"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = VerifyAuthCodeRequest

Source§

type Response = AuthTokensResource

Source§

impl Endpoint for VerifyRunner

Source§

const PATH: &'static str = "/ci/runner/{id}/verify"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = ()

Source§

type Response = ()

Source§

impl Endpoint for VerifyUserEmail

Source§

const PATH: &'static str = "/auth/account/verify-email"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = VerifyUserEmailRequest

Source§

type Response = UserEmailResource

Source§

impl Endpoint for VoteAnswer

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/question/{number}/answer/{answer_id}/vote"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = VoteAnswerRequest

Source§

type Response = VoteResource

Source§

impl Endpoint for VoteComment

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/question/{number}/comment/{comment_id}/vote"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = VoteCommentRequest

Source§

type Response = VoteResource

Source§

impl Endpoint for VoteQuestion

Source§

const PATH: &'static str = "/repository/{owner}/{repo}/question/{number}/vote"

Source§

const METHOD: Method = http::Method::POST

Source§

type Request = VoteQuestionRequest

Source§

type Response = VoteResource